I want to be able to disable controls inside the image tool section depending on what the user is doing. how do i access those elements so i can disable them?
1 Answer, 1 is accepted
0
Ivailo Karamanolev
Telerik team
answered on 26 Mar 2012, 03:53 PM
Hello,
Currently, there is no straightforward way to enable/disable the buttons, as you have no direct access to them. However, there is a possible workaround: you can change the commands that the ImageToolItem instance is bound to when you don't want to allow their execution. You can do that by implementing a custom command which always returns false in the CanExecute method.
This way, the buttons will be disabled when they are bound to this command, and enabled when bound to the original command.
Let us know if you need additional assistance.
All the best,
Ivailo Karamanolev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>