Hi,
i am using infragistics9.1. The WebSplitter control Collapsed and Expanded events not firing. How to do this? I want to expand the span controls on the Splitter Collapsed event. Please give the sample code.
Thanks in advance.
Regards,
Sudha
Hi Sudha,
I do not remember anybody reported similar. Maybe your application uses specific attributes for top elements like body, html, form, or splitter located in complex layout. Please, attach example of aspx (Options tab) which can be used to reproduce that behavior.
Thank you Viktor. This works fine. Now I have an another problem; in IE-7 Splitter behaviour is working correctly, but in IE-8 when i collapse the splitter it goes to right corner of the window. The same problem is in chrome and FireFox also. Please help me.
I wrote an example for you which processes collapsed event and finds reference to child element on one of panes.
<script type="text/javascript">function collapseEvt(splitter, evtArgs){ var pane2 = splitter.get_panes()[1]; var label1 = pane2.findChild('Label1'); //or global search for Label1 //var label1 = $get('<%=Label1.ClientID%>'); if(label1) alert('Collapse evt. Label1=' + label1.innerHTML + ' width=' + label1.offsetWidth); else alert('Collapse evt Label1 on Pane2 was not found');}</script><ig:WebSplitter ID="WebSplitter1" runat="server" Height="80px" Width="340px"> <Panes> <ig:SplitterPane runat="server" CollapsedDirection="NextPane"> </ig:SplitterPane> <ig:SplitterPane runat="server"> <Template> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </Template> </ig:SplitterPane> </Panes> <ClientEvents Collapsed="collapseEvt" /></ig:WebSplitter>