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

RadSplitButton

1 Answer 78 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 24 Jun 2011, 06:44 AM
Is there any way to have the dropdown control be enabled even if the Command it is bound to disables the button in CanExecute?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 29 Jun 2011, 03:01 PM
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.

Regards,
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
Tags
Buttons
Asked by
Chris
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or