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

Adding new node

1 Answer 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sampada
Top achievements
Rank 1
Sampada asked on 20 Jun 2012, 01:50 PM

I am using radtree having around 1000 nodes with different hierarchy.

I have added this tree under rad splitter and set pan height according to contain.

There is only 1 root node under root node all the nodes are getting added.

I have referred  http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

demo to add context menu for adding nodes in the tree.

Whenever I add the node in between of the tree nodes focus of the screen redirected to newly created node.

But when I am adding node in root node the focus is not going at the end of the screen on newly created node.

So to name it I have to scroll down to that node & have to rename it.

Can you please let me know why it is behaving this way?

Is there any fix for it?
Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 25 Jun 2012, 08:58 AM
Hi Sampada,

 
You can use the scrollIntoView property of RadTreeNode in order to scroll to it after you add it. You can also refer to this help article that explains how to add a node in edit mode by Default.
 
Hope this will be helpful.

All the best,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Sampada
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or