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

Data Row NodeDataBound

2 Answers 95 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 01 Nov 2010, 07:57 PM
I am trying to get the Data Row of the node during the NodeDataBound event.  I found the following documentation that I assume gets me this data. However, when I try to implement this and get "The type or namespace name 'DataRowView' could not be found (are you missing a using directive or an assembly reference?)"    I have the Telerik.Web.UI namespace imported.

protected void radTreeViewTopicsGridFilter_NodeDataBound(object sender, RadTreeNodeEventArgs e)
        {
            DataRowView dataSourceRow = (DataRowView)e.Node.DataItem;
        }


http://www.telerik.com/help/aspnet-ajax/troubleshooting-dataitem-property-is-empty.html

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Nov 2010, 07:55 AM
Hello Neil,


DataRowView represents a customized view of a DataRow and you need to add "System.Data" Namespace to use it.

in code page add this:
           using System.Data;


-Shinu.
0
HL
Top achievements
Rank 1
answered on 08 Nov 2010, 11:48 PM
HI shinu:
   Recently I searched lots at Forums and found you have lots of experience for Telerik control.
I posted my questison  at the wrong place and didn't releaze it was for Silverlight . I also submitted my questions to Telerik primary support and wait for the response. I wonder if you could help me out for my issue? I have this issue since I start to use RadTreeview
( several week ago) and couldn't find any similar issue/solution by searching forum. also the solution which I got from Telerik support won't work. not sure what I did wrong. Do you have any idea?

Thanks
Helena
I posted my issue at this URL:

http://www.telerik.com/community/forums/silverlight/treeview/edit-tree-node-from-code-behind.aspx
Tags
TreeView
Asked by
Neil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
HL
Top achievements
Rank 1
Share this question
or