Trouble displaying data with TreeView

3 posts, 1 answers
  1. Joe Riley
    Joe Riley avatar
    6 posts
    Member since:
    Mar 2010

    Posted 25 Feb 2011 Link to this post

    Hoping someone can direct me down the correct path.  Trying to have a Treeview control on a page where users can use the checkbox feature on the fields they would like queried out of the database. 

    This is what I have: Category (6 categories)
    Group Desc (to many to list)
    Friendly Column Name (to many to list)

    See attached image of the data that I return from SQL.

    I would like
            Group Desc
                Friendly Name (datatextfield = QualifiedName)

    When attempting to get it working I get several different errors.  Currently the error is

    These columns don't currently have unique values.

    <telerik:radtreeview id="RadTreeView1" runat="server" checkboxes="True" datafieldid="Category"
                datafieldparentid="GroupDescr" datasourceid="SqlDataSource1" datatextfield="FriendlyName" DataValueField="QualifiedName"></telerik:radtreeview>
  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Feb 2011 Link to this post

    Hello Joe,

    You are getting this error because a unique identifier must be assigned to the DataFieldID of Treeview. In your case the DataFieldID is 'Category' which is not a unique field in your database. For more information on this please refer the following documentation.
    Binding to Hierarchical Data

    Hope this information helps,
  3. Joe Riley
    Joe Riley avatar
    6 posts
    Member since:
    Mar 2010

    Posted 01 Mar 2011 Link to this post


    Thank you for your response it does help out greatly.

Back to Top