|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
Hi, I'd like to implement a splitter with a left/right panes, where the left pane includes a tree (MSDN help-type design). The links in the tree have to dynamically set the content of the right pane, and I'm just not finding anything in the documentation that will let me do it. Can I implement an iFrame inside the right pane and load the content the in there? What would you recommend?
Thanks in advance!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Yes. You can use an iframe for that. There are two things you will need to do: 1. You will need to set the TreeNode's TargetWindow to the name of your iframe; 2. You will need to handle the Splitter's ClientSideResized event with JavaScript. Inside your JavaScript handler you will need to dynamically resize your iframe. You can find sample code on how to handle ClientSideResized here: http://demo.essentialobjects.com/Demos/Splitter/Features/Auto%20Resize%20Contents/Demo.aspxHope this helps. Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
Thanks.
After I posted this message I realized that you allow HTML and/or controls inside the SplitterPane, so I'll just update a user control (content) via a server event (TreeNode's ItemClick). In this case I don't have to mess with frames at all.
Thanks for your help!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Yes. That can work too. SplitterPane is a container control like a Panel, so you can put pretty much anything in it.
Thanks!
|
|