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

"The DataItem property is available only during databinding in the NodeDataBound event"

1 Answer 78 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Caius
Top achievements
Rank 1
Caius asked on 22 Jul 2011, 09:35 AM
I understand why it's empty, and we retrieve our original row using lookup of the ID which we can store in the Value prop..
..I just cannot undertand why this is even a property of the Node at all.. Surely if it is only ever available in one event, it should be an argument to the event handler, NOT a property of the Node?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Jul 2011, 03:06 PM
Hi Caius,

The DataItem is a property of the node that comes through inheritance.
.
Here is an example project how it can be used to with NodeTemplate.

Greetings,
Plamen Zdravkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TreeView
Asked by
Caius
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or