Welcome Guest Search | Active Topics | Sign In | Register

Can I do this with your splitter and treeview Options
Digs
Posted: Sunday, November 22, 2009 10:42:06 PM
Rank: Newbie
Groups: Member

Joined: 11/22/2009
Posts: 6
Create a usercontrol.ascx
Place a two panel vertical splitter on usercontrol.
In the veritcal left hand panel, I will have 3 tree views. Each node populated from the SQL database
See example here: http://www.screencast.com/t/ZWQ0NmU2MjM

I need a treeview client side event to populate the right hand vertical panel via the open loading an aspx page method like MyInfopage.aspx?id=nodeID

I will loaded this usercontrol onto a single aspx page, at least 10 times, so each splitter (10 splitters) and each tree view (three treevies per splitter) must be unique so that the javascript does not conflict...

Can you tools do this ?

eo_support
Posted: Monday, November 23, 2009 7:22:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. You can do that. You will need to put an iframe inside the right splitter panel and then set the TreeView's TargetWindow property to the name of that iframe. Set each TreeNode's NavigateUrl property to specify which page it opens.

You can put as many of our controls as you wish in the same page and the JavaScript will not conflict. However if you have all of them visible then you will have 30 TreeViews loaded at the same time and you may get into some performance trouble. If you only have a few (or even a single one) visible at any given time then it is fine.

You may want to take a look of our online documentation and samples to see more details. Once you install our product, you will have the full source of all our online demos.

Thanks
Digs
Posted: Monday, November 23, 2009 1:31:03 PM
Rank: Newbie
Groups: Member

Joined: 11/22/2009
Posts: 6
The URL opens only one aspx page, however the content of the page changes due to the ID that is passed from the node selected.

The end result I only want two vertical panels, one for the reference of the with the treeviews, the other to load the aspx page (with the ID reference), do I need to use a splitter, or do I just use the frames???


eo_support
Posted: Monday, November 23, 2009 1:37:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Digs wrote:
The URL opens only one aspx page, however the content of the page changes due to the ID that is passed from the node selected.

That is fine. The TreeView doesn't care whether it's the same Url, or different paes, or the same page with different arguments. It takes whatever Url you give to it and open the page for you when you click it.

Digs wrote:
The end result I only want two vertical panels, one for the reference of the with the treeviews, the other to load the aspx page (with the ID reference), do I need to use a splitter, or do I just use the frames???

You can use frames as well. The main between frames and splitter is frames work with different pages, where as all splitter panes are within the same page. Another major difference is you can not customize the appearance of the frames, but you can customize the appearances of the splitter.

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.