Hi,
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;
uiAvailableLocations.DataBind();
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?