isEnabled fails because of Command Binding

2 posts, 0 answers
  1. peter
    peter avatar
    37 posts
    Member since:
    Feb 2011

    Posted 20 Dec 2011 Link to this post

    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?
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 22 Dec 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top