Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
903
ultranavigationbar : location's sorting ?
posted

I tried to add some locations to a root location using fake data code (the labels have been set to only one letter to paste the code) :

 

foreach (UltraNavigationBarLocation location in rootLocation.Locations)
            {
                location.Locations.Add("10", "A");
                location.Locations.Add("20", "B");
                location.Locations.Add("30", "R");
                location.Locations.Add("40", "I");
                location.Locations.Add("50", "J");
                location.Locations.Add("60", "N");
                location.Locations.Add("70", "C");
            }

 

Problem is that the locations added doesn't respect the KEY order but the labels' alphabetical order. So the display order wanted is not respected : Instead of ABRIJNC, I got ABCIJNR.

 

How can I fix this ?

 

Thanks in advance !