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

Collapsing a Pane?

1 Answer 62 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Michael Dunbar
Top achievements
Rank 2
Michael Dunbar asked on 20 Dec 2007, 04:16 PM
Hi,

Ok. I want to collapse a pane with a button in much the same way the splitbar does. On the old splitter you could achieve this with JavaScript, as I just found out here: http://www.telerik.com/community/forums/thread/b311D-bbdkbm.aspx

The above doesn't work with the prometheus splitter. So instead I am using a link button to call this code server side:

// Hide the pane containing the treeview
    protected void lbHidePane_Click(object sender, EventArgs e)
    {
        rpTopicSubMenuPane.Collapsed = true;
    }

The problem is this produces a postback and the rest of my page and splitter are using Ajax to dynamically update the content. So on postback the pane collapses but all my other content is lost. I need to update the pane and/or splitter using the Ajax manager when the asp link button is clicked.

I have tried telling the Ajax manager to update the pane and the splitter directly which doesn't work and wrapping the splitter in an update panel and then updating this which also doesn't work. Any ideas?

All I want to do is duplicate the function from the splitbar on another button.

Thanks,

Michael

1 Answer, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 21 Dec 2007, 11:58 AM
Hi Michael Dunbar,

You can find our answer in the the other forum thread you have started about RadSplitter for ASP.NET - Collapse a pane with JavaScript.

If you have other questions do contact us again.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Splitter
Asked by
Michael Dunbar
Top achievements
Rank 2
Answers by
Sophy
Telerik team
Share this question
or