Hello,
I am using Telerik PanelBar. I am using the version of 2010.3.1317.20. I cant upgrade to the latest version as the framework I am using .Net 2.0.
I have added the PanelBar in the MasterPage, When i Click on any of the item in the panel bar, the Click event is not firing.
The panelbar is populated at runtime. also the NavigateUri is set at runtime.
the below code is how i am adding the RadPanelItems
The click event is below
What finally i require is to have the RadPanelItem as selected on which the user last clicked. rest all remains un selected.
I am using Telerik PanelBar. I am using the version of 2010.3.1317.20. I cant upgrade to the latest version as the framework I am using .Net 2.0.
I have added the PanelBar in the MasterPage, When i Click on any of the item in the panel bar, the Click event is not firing.
The panelbar is populated at runtime. also the NavigateUri is set at runtime.
<telerik:RadPanelBar runat="server" ID="RadPanelNavBar" Visible="false" ExpandMode="MultipleExpandedItems" OnItemClick="RadPanelNavBar_ItemClick" EnableViewState="true"> </telerik:RadPanelBar>the below code is how i am adding the RadPanelItems
For Each mnuChildRow As DataRow In dtFilterData.Rows Dim menuAdminChild As New RadPanelItem() menuAdminChild.Text = mnuChildRow.Item(Field.DisplayName).ToString() menuAdminChild.NavigateUrl = "../" + mnuChildRow.Item(Field.ResourceName).ToString() menuMFGHeader.Items.Add(menuAdminChild) NextThe click event is below
Protected Sub RadPanelNavBar_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelNavBar.ItemClick If e.Item.Items.Count > 0 Then If e.Item.Expanded = False Then 'Label1.Text = "Collapsed panel item - " + e.Item.Text Else 'Label1.Text = "Expanded panel item - " + e.Item.Text End If Else 'Label1.Text = "Clicked panel item - " + e.Item.Text End If End SubWhat finally i require is to have the RadPanelItem as selected on which the user last clicked. rest all remains un selected.