RadTreeView does not sort according parent id but alphabetically

2 posts, 0 answers
  1. Alex
    Alex avatar
    9 posts
    Member since:
    Jan 2014

    Posted 06 Aug 2020 Link to this post


         I have a radtreeview which will order the hierarchy level by level. Here is the code

    uiAvailableLocations.DataValueField = FujiXerox.Common.Systems.Sustainability.Constants.Location.ID;
    uiAvailableLocations.DataTextField = FujiXerox.Common.Systems.Sustainability.Constants.Location.LocationName;
    uiAvailableLocations.DataFieldID = FujiXerox.Common.Systems.Sustainability.Constants.Location.ID;
    uiAvailableLocations.DataFieldParentID = FujiXerox.Common.Systems.Sustainability.Constants.Location.ParentID;
    uiAvailableLocations.DataSource = ds;


    The dataset ds will return the data in alphabetically order. At most times, the treeview can be sort in parent child order normally. But for some strange moments, it will just render the result alphabetically but not in parent child order. The code is same, however sometimes it just render the data alphabetically. What is the reason and how can I fix it?


  2. Peter Milchev
    Peter Milchev avatar
    894 posts

    Posted 11 Aug 2020 Link to this post

    Hello Alex,

    We have never received such reports or replicated this issue on our side, so we cannot tell you what causes it and how to fix it. 

    Usually, all nodes are represented as root nodes when their parentID is null.

    If the tree is not rendered correctly client-side, ensure there are no JavaScript errors in the browser's console.

    Peter Milchev
    Progress Telerik

Back to Top