Code snipet not working

3 posts, 1 answers
  1. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 02 Aug 2010 Link to this post

    Hello,

    Code snipet given on the telerik site is not working. Can you please give the updated snipet ?

    Existing code:
    function ExpandItem()
    {
       var panelbar = <%= RadPanelBar1.ClientID %>;
       var item = panelbar.FindItemByText(text);
       if (item)
       {
           item.Expand();
       }
       else
       {
           alert("Item with text '" + text + "' not found.");
       }
    }

    link:
    http://www.telerik.com/help/aspnet/panelbar/panelbar_client-sideapi.html

    Can you please update it ?

    I could make a change for the firstline :
    var panelbar = $find("<%= RadPanelBarUserInfo.ClientID %>");


    But it failed for the second line:
    var item = panelbar.FindItemByText("AccountInformation");
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Aug 2010 Link to this post

    Hi Prayag,

    This help article is about the classic RadPanelBar for ASP.NET, I guess that you're using RadPanelBar for ASP.NET AJAX which has a different client-side API, you can find it here.

    Kind regards,
    Yana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 04 Aug 2010 Link to this post

    Thanks Yana for the correction.

    Prayag
Back to Top