New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
The DataItem Property is Empty
The DataItem property is available only during data binding in the NodeDataBound event:
C#
protected void RadTreeView1_NodeDataBound(object o, RadTreeNodeEventArgs e)
{
DataRowView dataSourceRow = (DataRowView)e.Node.DataItem;
}
You should not use it elsewhere. You can use the Value property or Custom Attributes instead.