access label in item template

2 posts, 0 answers
  1. Robert
    Robert avatar
    12 posts
    Member since:
    May 2013

    Posted 12 Aug 2013 Link to this post

    Hi

    I have placed a label inside the item template of item of a radpanelbar. How do I access it in javascript?

    Thanks
    Robert
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Aug 2013 Link to this post

    Hi Robert,

    Please have a look at the following JavaScript code.

    JavaScript:
    <script type="text/javascript">
        var label1 = $find('<%= RadPanelBar1.FindItemByText("ItemText").FindControl("lblText").ClientID %>');
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top