online help / client side call fail: panelItem.expand()

2 posts, 0 answers
  1. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 08 Dec 2010 Link to this post

    Hi,

    just wanted to expand my panelbar client side and found the code in the online documentation. But it didn't work, but i i found another working way.

    - not working:

    http://www.telerik.com/help/aspnet-ajax/panel_clientsidebasics.html

    function expandItem(text)
    {
    var panelBar = $find("<%= RadPanelBar1.ClientID %>");
    var item
    = panelBar.findItemByText(text);
    if (item)
    {
      
    item.expand();
    }
    else
    {
      
    alert("Item with text not found.");
    }
    }


    - working:

    function ExpandPanelBarItem()
                {
                    var panelBar = $find("<%= RadPanelBar1.ClientID %>");
                    panelBar.get_allItems()[0].expand();
                }

    (Care -> in this example this is enough because its just 1 panelbaritem in the panelbar which i want to be opened.)

    - Mario
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 13 Dec 2010 Link to this post

    Hi Mario,

    I've tested the code from the help article and it works without a problem at our side. Can you send us a sample page demonstrating the problem?

    Greetings,
    Yana
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top