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

How to add,remove,change nodes' text and save to database

1 Answer 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Hsuani
Top achievements
Rank 1
Hsuani asked on 29 Aug 2014, 07:22 PM
Could you show me a sample for add,remove,change text with a RadTreeView and save to database?
I tried many ways but never work.
At first I face "id" problem,these create by JavaScript doesn't have Value to be "id".
Then I face "parentID" problem,because parentNode is create by JavaScript so it have no Value to become "parentID"
And many problems.

(I am trying to create a new tree,the database is empty)

Could you give me a sample for Client-Side add,remove,change text,and postback to save to Database?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 02 Sep 2014, 02:59 PM
Hello,

I would suggest setting the RadTreeView DataValueField=''id". This way you can use the RadTreeNode client-side object get_value() in order to get the node id value in the data base.


Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Hsuani
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or