2 posts, 1 answers
  1. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 28 Jun 2012 Link to this post

    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?
  2. Answer
    Kate avatar
    1898 posts

    Posted 02 Jul 2012 Link to this post

    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

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top