You could set the CommandsAutoPostBack
property to false in order to prevent postback when the user clicks on the command icon. This way the command event handler would be called only when a postback is made by another control on the page and you will be able to execute your code for all docks.
If you prevent the default behavior when clicking on a command icon you will in fact degrade the user experience because when you click on the icon some action should take place. But if you want to prevent the users from clicking on the command icons you could attach an onclick event handler to the commands container of the dock. The code below shows how to get the commands container:
|var commandsContainer = dock.get_commandsContainer();
I hope this helps. If you have further questions, please, feel free to contact us at any time.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.