Data Row NodeDataBound

3 posts, 0 answers
  1. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 01 Nov 2010 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Nov 2010 Link to this post

    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.
  3. HL
    HL avatar
    55 posts
    Member since:
    Dec 2009

    Posted 08 Nov 2010 Link to this post

    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
Back to Top