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

Expad Collapse Mode

1 Answer 53 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Azees
Top achievements
Rank 1
Azees asked on 06 Apr 2009, 08:05 AM

I have split my pages using split bar . I need to expand and collopse in button click event

In my code i have four links in the left pane when clcik the first link the right side first spilter become expand

how to i expand and collopse using button click event

By

Friend











<
telerik:RadSplitter id="RadSplitter1" runat="server" height="300" width="700">

 

 

<telerik:RadPane id="navigationPane" runat="server" width="150">

 

 

<a href="#" >Personnel Info</a> <br />

 

 

<a href="#" > Project Info </a><br />

 

 

<a href="#" > Joining Info </a><br />

 

 

<a href="#" > Emergency Info </a><br />

 

 

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar id="RadSplitbar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar>

 

 

<telerik:RadPane id="contentPane" runat="server" scrolling="none">

 

 

<telerik:RadSplitter id="RadSplitter2" runat="server" orientation="Horizontal">

 

 

<telerik:RadPane id="topPane" runat="server">

 

Nested Splitter Top Pane

 

</telerik:RadPane>

 

 

<telerik:RadSplitBar id="RadSplitbar2" runat="server" CollapseMode="Forward">

 

 

</telerik:RadSplitBar>

 

 

<telerik:RadPane id="bottomPane" runat="server">

 

Nested Splitter Bottom Content

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 06 Apr 2009, 12:53 PM
Hello Azees,

I suggest to obtain a reference to the RadPane client-side object and to use its client-side API methods expand() and collapse() to control the behavior through code.

You can find a similar online demo below:

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

Sincerely yours,
Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Splitter
Asked by
Azees
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or