2 posts, 0 answers
  1. Chris
    Chris avatar
    1 posts
    Member since:
    Jun 2011

    Posted 24 Jun 2011 Link to this post

    Is there any way to have the dropdown control be enabled even if the Command it is bound to disables the button in CanExecute?
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 29 Jun 2011 Link to this post

    Hello Chris,

    I am not sure what you need to implement. If you want to control the enabled state of the entire RadSplitButton through its IsEnabled property rather than through the returned result from the CanExecute() method of the command, then unfortunately this isn't possible at the moment. However, we have logged this issue in our PITS, where you can track its progress and vote for it thus increasing its priority.

    If you want to disable the RadSplitButton but leave its DropDown part enabled, you can modify the ControlTemplate of the button to implement this scenario. I attached a sample project illustrating a possible approach.

    I hope this info will help you.

    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top