This is a migrated thread and some comments may be shown as answers.

Collapse Sliding Pane in code behind

1 Answer 81 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Cliff Gibson
Top achievements
Rank 1
Cliff Gibson asked on 02 Jun 2010, 04:11 PM
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?

Cheers
Cliff

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 03 Jun 2010, 09:43 AM
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.

Regards,
Tsvetie
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.
Tags
Splitter
Asked by
Cliff Gibson
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or