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

Can't re-enable RadButton using Command binding

3 Answers 203 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 23 Jul 2012, 07:17 AM

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

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 23 Jul 2012, 08:47 AM
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.

0
Sam
Top achievements
Rank 1
answered on 24 Jul 2012, 01:04 AM

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
0
Tina Stancheva
Telerik team
answered on 24 Jul 2012, 06:33 AM
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.

Tags
Buttons
Asked by
Sam
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Sam
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or