Welcome Guest Search | Active Topics | Sign In | Register

TreeView and callbacks Options
Arnold Bailey
Posted: Wednesday, February 24, 2010 8:26:37 PM
Rank: Advanced Member
Groups: Member

Joined: 8/4/2007
Posts: 42
What I would like to do is display a complex TreeView. Then when you click a node it should do a callback and insert between the node clicked and the one directly below it a fairly complex collection of controls and text, a panel . Click another node and the first panel disappears and another callback does the same thing.

I can make the tree and can get it to make a callback panel display the right data. What I need is a method for preferably, using one callback panel, move that callback panel between the appropriate nodes as described.

I supposed I could put a customitem with Calbackpanel on each treenode, but it seems like a lot of info on a large tree and very repetitious.

Any thoughts.
eo_support
Posted: Wednesday, February 24, 2010 9:09:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There isn't an easy way to do that. You could do it with a CustomItem on each TreeNode but as you noticed it's not really a good solution because it's going to be very repetitious and tedious and also horribly inefficient. The most efficient way in our opinion is to do it with JavaScript and render the controls with raw HTML. For example, you could set a TreeNode's Text property to raw HTML such as "<input type='text' name='input1' />" to put a textbox inside a tree node. You would then use something like Request.Form["input1"] to get the value of the input (instead of using a server control such as TextBox1). It won't be too much coding and you have the flexibility to change almost everything on the fly without go back to the server at all.

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.