I would like to get the value of the DataValueField on Item Click and use that value for the Items Expanded. Something like below.
ProtectedSubRadPanelBar1_ItemClick(sender AsObject, e AsTelerik.Web.UI.RadPanelBarEventArgs) HandlesRadPanelBar1.ItemClick
DimExtend = RadPanelBar1.DataValueField
RadPanelBar1.Items(Extend).Expanded = True
Is this possible?
1 Answer, 1 is accepted
answered on 02 Jul 2012, 12:39 PM
If you need to get the value of the RadPanelItem when it is clicked you can simply use its Value property in the following way:
Protected Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As RadPanelBarEventArgs)
Dim ItemClicked As RadPanelItem = e.Item
Response.Write("Server event raised -- you clicked: " + ItemClicked.Value)
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.