Hi, Here is my setup:
1. in the file
3. THE PROBLEM
the e.node.DataItem is always null.
Can anyone tell me why and how i can make this the SiteDateItem that is bound to the tree node?
1. in the file
<
telerik:radtreeview id="RadTreeView2" runat="server" width="100%" height="100%"
datasourceid="ObjectDataSource1" datafieldid="ID" datafieldparentid="ParentID"
datatextfield="Text" OnNodeClick="RadTreeView2_OnNodeClick">
<DataBindings>
<telerik:RadTreeNodeBinding Expanded="true" />
</DataBindings>
</
telerik:radtreeview>
<
asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
TypeName="xxxx.Component.Classes.SiteDataItemCache" SelectMethod="GetSiteDataItems">
</
asp:ObjectDataSource>
2. in the codebehind
protected
void RadTreeView2_OnNodeClick(object sender, RadTreeNodeEventArgs e)
{
SiteDataItem item = (SiteDataItem) e.Node.DataItem;
}
3. THE PROBLEM
the e.node.DataItem is always null.
Can anyone tell me why and how i can make this the SiteDateItem that is bound to the tree node?