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

RadPanelBar

1 Answer 55 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 2
Allan asked on 28 Jun 2012, 08:16 PM
I would like to get the value of the DataValueField on Item Click and use that value for the Items Expanded. Something like below.
Protected Sub RadPanelBar1_ItemClick(sender As Object, e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemClick
 
    Dim Extend = RadPanelBar1.DataValueField
 
    RadPanelBar1.Items(Extend).Expanded = True
 
End Sub


Is this possible?

1 Answer, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 02 Jul 2012, 12:39 PM
Hello Allan,

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)
End Sub

Regards,
Kate
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.
Tags
PanelBar
Asked by
Allan
Top achievements
Rank 2
Answers by
Kate
Telerik team
Share this question
or