This is a migrated thread and some comments may be shown as answers.

Control Toolbar on client

1 Answer 137 Views
Editor
This is a migrated thread and some comments may be shown as answers.
HelloULi
Top achievements
Rank 1
HelloULi asked on 25 Apr 2008, 10:54 PM
If I can control the toolbar button's visibility on the clientside ? I have search in the documents, but I can only find the method to set its state.

1 Answer, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 28 Apr 2008, 04:50 PM
HelloULi-

I don't think you have the option to control the visibility of a button on the client. Clearly, you can set the enabled or disabled state, but to "hide" a button in the Editor you problem need to remove it on the server. Check out this article for help:

http://www.telerik.com/help/radcontrols/prometheus/
?RemovingToolbarButtons.html

You could, of course, use Ajax to make this process seamless, but there is no pure client-side API for hiding buttons, nor is there a "hidden" button state you can set on the server.

Hopefully this helps.

-Todd
Tags
Editor
Asked by
HelloULi
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Share this question
or