It is possible to bind the grid on expansion of Collapsible panel..
For that add one hidden button and on expand just do postback. and in button event just write code to bind the grid.
Here is the code
-
-
<script language="javascript" type="text/javascript">
-
function pageLoad()
-
{
-
//to handle the client event of the ColCandidateRequest
-
if($find('<%=ColCandidateRequest.ClientID%>')!=null)
-
{
-
$find('<%=ColCandidateRequest.ClientID%>').add_expandComplete(postCandidateRequest);
-
}
-
}
-
-
-
function postCandidateRequest()
-
{
-
var btnName = $get("<%=btnCandidateRequest.ClientID%>").name;
-
__doPostBack(btnName,"click");
-
}
-
</script>
-
Add hidden button
(aspx page )
-
<asp:Button Style="display: none" ID="btnCandidateRequest" OnClick="btnCandidateRequest_Click"
-
runat="server" Text="Button"></asp:Button>
-
<cc1:CollapsiblePanelExtender ID="ColCandidateRequest" runat="server" EnableViewState="true"
-
SuppressPostBack="true" ImageControlID="imgCandSubReq" Collapsed="true" CollapseControlID="PanelCandSubReq"
-
ExpandControlID="PanelCandSubReq" TargetControlID="PanelCandSubReqGrid" TextLabelID="lblCandSubReq" CollapsedText="Show"
-
ExpandedText="Hide">
-
</cc1:CollapsiblePanelExtender>
-
And in the btnCandidateRequest_Click event write code for binding the grid.
regards,
Veena