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
Hi,
You could achieve desired behavior if you add this single line of code at the end of
private void InitializeUI() method:
unbFolders.NavigateTo("C:\\Users\\Public\\Downloads", true);
Please take a look at the attached sample and new behavior
PS. Please note that this is the path of my machine. If your path is different, just change it.
This is now got to be answereed Friday morning asap or the client has told me to not use IG. I love IG.... please help. Call me at 410-459-8172
Hello Ross,
After our phone conversation and Live session, here is the new sample with desired behavior. Please take a look at the attached sample and video file for more details and let me know if you have any questions.
Video Part 2
Video Part 3
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