I am trying to hide and show buttons on a RadToolBar from the server. There doesn't appear to be an API to do this! (You'd think a simple .Visible property would be there.) I don't want to resort to fully removing the button if I can avoid it.
Note: I am not trying to disable the button. I don't want it to render, but I don't want it to be deleted either.
Suggestions?
| toolbar.FindItemByText("text").Visible = false; // This has no effect |
| toolbar.FindButtonByCommandName("command")... // No Visible property here |
| (toolbar.FindButtonByCommandName("command") as RadToolBarItem).Visible = false; // This has no effect |