I am trying to use the Navigation Bar but I have items in it I don’t want certain users to see certain options. I can set Visible = false but wanted to know if there was any way to remove them completely.
I’ve tried this.Controls.Remove() and navBar.Controls.Remove() and then navBar.Update() but they still show and generate run-time errors when clicked.
I tried this on our NavigationBar sample in https://wisej.com/examples/ (click on the github link):
this.panel1.Items.RemoveAt(0); // any variation // or this.panel1.Items[0].Dispose();
Do you get an error? It seems to work fine:
https://drive.google.com/file/d/1oFe8nuciSjkg6dzwOCgkCCKsckTW_Yah/view
Hi Neil,
you can use the Items collection of the NavigationBar to show/hide items.
this.navigationBar1.Items[1].Visible = false;
Best regards,
Frank
Please login first to submit.