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

Image Tools Section

1 Answer 45 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Aziz
Top achievements
Rank 1
Aziz asked on 22 Mar 2012, 04:11 PM
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

Sort by
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 >>
Tags
ImageEditor
Asked by
Aziz
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or