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

Node value with DataFieldID

1 Answer 143 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Shed Dweller
Top achievements
Rank 1
Shed Dweller asked on 30 Jul 2008, 08:43 AM
I'm loading a tree with a DataSet.

I'm setting all the usual fields e.g DataFieldID, DateTextField, DataFieldParentID etc. and the tree is shown as expected.  I've also enabled checkboxes.

I want to get the ID values of all checked nodes.

However when I look at the rendered nodes in the browser I can see no evidence of the DataFieldID value anywhere in the HTML.

Is there anyway of automatically associating my nodes with the DataFieldID value?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Jul 2008, 01:58 PM
Hi Sean,

Thank you for contacting Telerik support.

I suggest you set the DataValueField property of RadTreeView to the same value as DataFieldID. In this way the Value property of the nodes will contain the DataFieldID.

Hope this helps.

Greetings,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Shed Dweller
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or