3 Answers, 1 is accepted
0
Hello karthi,
Thank you for writing.
The easiest way to expand and highlight an inserted node is to set its Selected property to true. Please review the provided code-block below as a reference:
I hope this was helpful. Do not hesitate to contact me again if you need additional assistance.
Best wishes,
Martin Vasilev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for writing.
The easiest way to expand and highlight an inserted node is to set its Selected property to true. Please review the provided code-block below as a reference:
private void radButton1_Click(object sender, EventArgs e) |
{ |
RadTreeNode newNode = new RadTreeNode(); |
newNode.Text = "MyNewNode"; |
AddNewNode(this.radTreeView1.Nodes[1].Nodes[2], 1, newNode); |
} |
private void AddNewNode(RadTreeNode parentNode, int insertPosition, RadTreeNode nodeToInsert) |
{ |
parentNode.Nodes.Insert(insertPosition, nodeToInsert); |
nodeToInsert.Selected = true; |
} |
I hope this was helpful. Do not hesitate to contact me again if you need additional assistance.
Best wishes,
Martin Vasilev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Vivek
Top achievements
Rank 2
answered on 19 Sep 2013, 11:07 AM
I also have to collapse root node upto level 1 at client side, please let me know.
Root Node
- Contract 1
- Contract 2
for more details, pls refer attached snap shot.
Root Node
- Contract 1
- Contract 2
for more details, pls refer attached snap shot.
0
Hello Vivek,
Thank you for writing.
Please refer to the attached project where I am recursively traversing all the nodes in the RadTreeView and collapsing/expanding them according to their check state.
I hope this will help.
Regards,
George
Telerik
Thank you for writing.
Please refer to the attached project where I am recursively traversing all the nodes in the RadTreeView and collapsing/expanding them according to their check state.
I hope this will help.
Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>