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

[Solved] How to add a new node on client side with text and value ?

0 Answers 8 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sivakumar
Top achievements
Rank 1
Sivakumar asked on 11 Jun 2013, 02:28 PM
I am having an issue to add a node with text and value in client side in Tree view control

I could see only the following methods to add only text item but not the value 

treeview.append({ Text: "baz" });
treeview.insertBefore({ Text: "bar" }, treeview.findByText("foo"));
treeview.insertAfter({ Text: "bar" }, treeview.findByText("foo"));

I was hoping for a method, some thing like this 

treeview.append({ Text: "baz",
 
Value: "Test"
});
treeview.insertBefore({ Text: "bar", Value: "Test" }, treeview.findByText("foo"));
treeview.insertAfter({ Text: "bar" , Value: "Test" }, treeview.findByText("foo"));

Or is there is any alternative to get the work done ? please help 

I am using "Extensions for ASP.Net MVC Q1 2012 SP1"


Thanks in advance.
Siva
Tags
TreeView
Asked by
Sivakumar
Top achievements
Rank 1
Share this question
or