ItemClick Event is not firing when Expand button is clicked

2 posts, 0 answers
  1. Mahen
    Mahen avatar
    2 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    I have a radPanelbar, and ItemClick server side event attached to it. But this event is not firing when i click on the expand button of the item. What exactly i need to do in order to execute the code in the ItemClick event when the expand button is clicked.

    Thanks in advance.
    <telerik:RadPanelBar runat="server" ID="rpbFilters" ExpandMode="FullExpandedItem" Skin="Windows7">
                   <Items>
                                  <telerik:RadPanelItem Text="Item1" Expanded="False">
                                                 <ContentTemplate>
                                                                <telerik:RadListBox runat="server" ID="radChkList1" ClientIDMode="Inherit" CheckBoxes="true" >
                                                                </telerik:RadListBox>
                                                 </ContentTemplate>
                                  </telerik:RadPanelItem>
                                  <telerik:RadPanelItem Text="Item2" Expanded="False">
                                                 <ContentTemplate>
                                                                <telerik:RadListBox runat="server" ID="radChkList2" ClientIDMode="Inherit" CheckBoxes="true" >
                                                                </telerik:RadListBox>
                                                 </ContentTemplate>
                                  </telerik:RadPanelItem>
                   </Items>
    </telerik:RadPanelBar>
     
     
     Private Sub rpbFilters_ItemClick(sender As Object, e As Telerik.Web.UI.RadPanelBarEventArgs) Handles rpbFilters.ItemClick
                   'Load data
    End Sub
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Oct 2012 Link to this post

    Hi Mahen,

    One suggestion is that You can raise Item click event in OnClientItemExpand event of RadPanelBar as follows.

    JS:
    <script type="text/javascript">
     function OnClientItemExpand(sender, args)
     {
      args._item._click();
     }
    </script>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top