Welcome Guest Search | Active Topics | Sign In | Register

TreeView in a splitter Options
Abacus Financial Inc.
Posted: Sunday, November 17, 2013 8:53:52 PM
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!
eo_support
Posted: Sunday, November 17, 2013 9:05:14 PM
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.aspx

Hope this helps.

Thanks!
Abacus Financial Inc.
Posted: Monday, November 18, 2013 10:32:13 AM
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!
eo_support
Posted: Monday, November 18, 2013 10:35:22 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.