Collapse Sliding Pane in code behind

2 posts, 0 answers
  1. Cliff Gibson
    Cliff Gibson avatar
    45 posts
    Member since:
    Oct 2009

    Posted 02 Jun 2010 Link to this post

    I've got a sliding pane on a page which contains a search box and radGrid.  The user can carry out a search and when they select an entry from the grid I fire the SelectedIndexChanged event to populate the main content pane with the results.

    What I would like to do is once the results are populated is then automatically close the sliding pane from the code behind but I cannot find an option to do this - does a method exist?

  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 03 Jun 2010 Link to this post

    Hello Cliff Gibson,
    You need to set the ExpandedPaneId property of the RadSlidingZone to an empty string in order to close an expanded sliding pane in code behind. However, as you mention that you are using AJAX, you need to make sure that the splitter control is updated during the AJAX request in order for the changes to take effect.

    In case you do not want to update the whole splitter during the AJAX request, you can collapse the sliding pane with JavaScript after the request finishes. In order to do this, you can use the collapsePane client-side method of the sliding zone and either the endRequest client-side event of the pagerequestmanager or the ResponseScripts collection of RadAjaxManager/RadAjaxPanel in case you are using RadAjax.

    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.
Back to Top