TreeView - Hierachy support for non-numeric parent ID's

3 posts, 0 answers
  1. Matthew Petersen
    Matthew Petersen avatar
    4 posts
    Member since:
    Apr 2007

    Posted 21 Mar 2011 Link to this post

    When showing a hierachial set of data in a treeview, can the ID and ParentID fields be non-numeric? Specifically i have a datatable where the ID and Parent IDs are GUIDs.

    I was able to get things working if i used integers for the id and parent id fields, but not for strings.

    thanks in advance.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Mar 2011 Link to this post

    Hello Matthew,

    I have tried binding to hierarchical data with DataFieldID, DataParentFieldID (with data type as string) and it is working fine at my end. Can you please check the DataFieldID is a unique field in your database. Also check the whether the data type of DataFieldID and DataFieldParentID is same. Please describe what king of issue you are facing when  binding RadTreeview to hierarchical data.

    Thanks,
    Princy.
  3. Matthew Petersen
    Matthew Petersen avatar
    4 posts
    Member since:
    Apr 2007

    Posted 22 Mar 2011 Link to this post

    Thanks, however i have figured it out. The parentID field in my data had null values for the root elements. This caused the entire treeview to not display anything.
Back to Top