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

isEnabled fails because of Command Binding

1 Answer 49 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
peter
Top achievements
Rank 1
peter asked on 20 Dec 2011, 10:26 AM
Hi I have a button which has an IsEnabled property, however the problem is I have a command on it which renders the property useless. How do i fix this issue?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 22 Dec 2011, 06:18 PM
Hi,

 Currently , when a RadButton has Command wired/bound, the Commands CanExecute() method's returned value is with higher priority than the IsEnabled property's value. We have previously logged this as a bug in the RadButtons and you can vote for this PITS item, this way increasing its development priority. 
The only workaround is to customize your CanExecute() logic so that you don't need to use the IsEnabled property. Hope this is suitable for you.

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Buttons
Asked by
peter
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or