Can't re-enable RadButton using Command binding

4 posts, 0 answers
  1. Sam
    Sam avatar
    67 posts
    Member since:
    Jun 2011

    Posted 23 Jul 2012 Link to this post


    Hi, we're struggling with a real issue at the moment since upgrading to Q2 2012.

    We have several RadButtons which have Command bindings to their view model, using the Prism 4 DelegateCommand with execute / canexecute methods.

    When commands need to be updated, we call RaiseCanExecuteChanged() on each command.

    The problem we're experiencing is that once the buttons have been disabled, we simply can't get them to re-enable again, even though the can execute methods are returning true every time they are called.

    However if I use the normal Silverlight button, then everything works as expected. 

    Unfortunately I can't repro this problem with a simple sandbox application, which isn't much help to you I know.

    This worked for us in previous releases with the RadButton, so something has definitely broken with this new release, and I would urge Telerik to look for ways in which the new RadButton source may not always work correctly.

    We're working around the problem by not using the commanding pattern, falling back to Click / IsEnabled combo, which is more verbose and not very MVVM but at least it works.

    Please let me know if you have any information on this matter or if there are other things that I could check.

    Thanks,

    Sam
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 23 Jul 2012 Link to this post

    Hi Sam,
    I'd like to ask you to download our latest internal build (2012.2.716 or 2012.2.723) and try your scenario with it because last week we fixed some problems related to the canExecute and isEnabled. Meanwhile I'd like to ask you a couple of questions so I could try to reproduce your issue:
     - how do you disable your buttons (IsEnabled = false, using BusyIndicator etc.)?
     - when you disable the buttons why don't you just change the CanExecute to false and return it to true once you want to re-enable them?
    We're looking forward to hearing from you.

    All the best,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Sam
    Sam avatar
    67 posts
    Member since:
    Jun 2011

    Posted 23 Jul 2012 Link to this post


    Hi Zarko, 

    I tried internal build 2012.2.716, and it has fixed all instances of this particular problem for us, although we'll wait for the next release before upgrading permanently.

    Do you have an ETA on when the next release of the Silverlight controls will be?

    Thanks,

    Sam
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Jul 2012 Link to this post

    Hello Sam,

    The Q2 2012 SP release is coming by the end of this week. Once it's out, you can upgrade your solution and let us know if you have any issues or questions.

    Best regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top