This is a migrated thread and some comments may be shown as answers.

ItemClick Event is not firing when Expand button is clicked

1 Answer 64 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Mahen
Top achievements
Rank 1
Mahen asked on 19 Oct 2012, 04:10 PM
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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Oct 2012, 04:38 AM
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.
Tags
PanelBar
Asked by
Mahen
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or