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
Removing the rootlocation in rootlocation's locations dropdown
posted

 

I need to "hide" or remove the Rootlocation from the rootlocation's locations dropdown showing the navigationBar.RootLocation.Locations' collection

 

I don't find any property to remove it from the dropdown, is this possible ?

  • 48586
    posted

     

    Hi,

     

    I just wanted to know if you were able to solve your issue based on my latest suggestions or you still need help? Just let me know.

    Thank you.

  • 48586
    Suggested Answer
    posted

    Hello ,

     

    Location object of UltraNavigationBar has a property called DisplayText, that determines string which is displayed in NavigationBar. For example you could use code like :

    this.ultraNavigationBar1.RootLocation.DisplayText = "HideText";

    this.ultraNavigationBar1.RootLocation.Text = "C:";

    or when you add location to the RootLocation you could use:

    UltraNavigationBarLocation lok = ultraNavigationBar1.RootLocation.Locations.Add("5", "test1");

    lok.DisplayText = "Your Text Here";

     

    On the following link you could find and tutorial how to use UltraNavigationBar, and how to populate its locations.

     

    http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/WinNavigationBar_Browsing_the_File_System_with_WinNavigationBar.html

     

     

    let me know if you have any further questions.