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

Default Pane to Open

3 Answers 86 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Adam Thompson
Top achievements
Rank 1
Adam Thompson asked on 19 Nov 2009, 04:27 PM

Hi,

I have a question about the following example.

http://demos.telerik.com/aspnet-ajax/splitter/examples/default/defaultcs.aspx

Is it possable to default the contacts pane to be open on pageload? If so, how do I do it. I have tried a couple of things and can't get it to work.

thanks,

-Adam

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 20 Nov 2009, 10:15 AM
Hi Adam,

Yes, it is possible to set default expanded pane ID by using the ExpandedPaneId property of the RadSlidingZone and set it to the ClientID of the desired RadSlidingPane.


Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jason
Top achievements
Rank 2
answered on 29 Jan 2010, 10:20 PM
I had the same problem and couldn't find any examples on how to it with c#.  I am working with master pages so this was key.  The code below worked for me.

RadSlidingPane

 

toolboxpane = (RadSlidingPane)Page.Master.FindControl("ToolBox");

 

 

 

RadSlidingZone

 

toolboxzone = (RadSlidingZone)Page.Master.FindControl("LeftSide");

 

 

toolboxzone.DockedPaneId =

"ToolBox";

Adisa

 

0
Svetlina Anati
Telerik team
answered on 01 Feb 2010, 01:08 PM
Hello Adisa,

As far as I see, you are using a MasterPage and the MasterPage is an INaming Container which means that it changes the actual IDs of the controls. In order to get the desired result you should use the ClientID property as shown below:

toolboxzone.DockedPaneId = toolboxpane.ClientID


All the best,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Splitter
Asked by
Adam Thompson
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Jason
Top achievements
Rank 2
Share this question
or