Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
WebSplitter events(Collapsed and expanded) not firing
posted

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

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    Hi Sudha,

    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>

Children