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

Radsplitter Collapsing Serverside

1 Answer 79 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Vijaianand
Top achievements
Rank 1
Vijaianand asked on 13 Oct 2011, 09:16 PM
I like to get the RadPane on the RadSplitter collapsed from codebehind preferably after post back. I saw few options using javascript but I want to do it on the codebehind so I can do it after every post back. Or I want the radpane to show collapsed after every page postback even with ExpandPanelId set. 

Please gimme some solution.

Vijai

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 19 Oct 2011, 02:39 PM
Hi Vijai,

I have already answered your support ticket on the subject. For convenience I will paste my answer here as well:

If I understand you correctly you need to have the sliding pane expanded only on initial load and collapsed on subsequent postbacks. To achieve this, you need to manually clear the ExpandedPaneId property of the parent sliding zone, e.g.:
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
        RadSlidingZone1.ExpandedPaneId = "RadSlidingPane1";
    else
        RadSlidingZone1.ExpandedPaneId = "";
}

You need to manually clear the ExpandedPaneId because by design RadSplitter preserves the its state over postbacks.


Best wishes,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Splitter
Asked by
Vijaianand
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or