PanelBar Expand/Collapse Buttons No Server-Side Event

2 posts, 0 answers
  1. Seth
    Seth avatar
    66 posts
    Member since:
    Oct 2009

    Posted 12 Nov 2010 Link to this post

    I have a PanelBar that I dynamically load data in the ItemTemplates when the user expands the PanelBarItem.  This was working fine until the new skins came out that added the expand/collapse button to the PanelBarItems.  It doesn't seem that a Server-Side event gets fired when this button is used.  I was triggering off of the ItemClick event to perform my databinding, but this no longer works.  Are there any suggestions on how to handle the action of a user clicking on this button?

    TIA
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 16 Nov 2010 Link to this post

    Hello Seth,

    Well you can handle the ClientItemExpand and ClientItemCollapse events and call the click() method of the item that is being expanded/collapsed, e.g. args.get_item().click(). Then if the ItemClick is handled on the server the PanelBar will postback.

    I hope this solves it for you!


    Regards,
    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jumpstart 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