this.ultraNavigationBar1.RootLocation.Text = @"C:\CMT\";
or:
this.ultraNavigationBar1.RootLocation.Text = @"C:\CMT";
gives me this error:
An UltraNavigationBarLocation cannot contain the PathSeparator in any part of the text which is used to identify it when parsing a navigation path.
How do I specify a starting folder?
I solved my question above with:
ultraNavigationBar1.NavigateTo("C:\\CMT", true);
My question now is how do I prevent the user from going to the parent of the root I navigate to. IE... I want to just let them navigate within a certain root folder or it's sub folders.
Hello rookertrusted,
Please note that it is not possible to use PathSeparator in the DisplayText or Text properties. If you want to achieve desired behavior, you should use InitializeLocations event, Locations Collection. More details you could find in our online documentation:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/WinNavigationBar.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/Win_WinNavigationBar_Using_WinNavigationBar.html
Also please take a look at the attached sample where I`m using UltraNavigationBar.
Let me know if you have any further questions.
Regards
Here is the sample
In your example I see a method called PopulateRoot. What change would be required to only show the folder c:\downloads in the UltraTree "tvwFolders"?
Then the user would only be able to navigate within the C:\Downloads folder.
Hello Ross,
Please take a look at the new simple sample and video file for more details and let me know if you still have any questions.
I made the changes per your video and they are perfect. Thanks so much.
the sample code you sent is not the one that I needed. I need the sample code that was in the videos.
Sample
Video Part 3
Video Part 2