Image Tools Section

2 posts, 0 answers
  1. Aziz
    Aziz avatar
    32 posts
    Member since:
    Sep 2011

    Posted 22 Mar 2012 Link to this post

    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?
  2. Ivailo Karamanolev
    Ivailo Karamanolev avatar
    276 posts

    Posted 26 Mar 2012 Link to this post


    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 >>
Back to Top