As you have bound both buttons' IsEnabled
property to a property from your ViewModel
, then the best approach would be to use the Commands
you defined to change the value of this property so that it disables the buttons.
It can be done easily in the CanVerifyCommand
execution as it takes the business object as a command parameter. However, I am not sure what is your logic for the ExecuteCommand
but you should be able to modify it so that it also changes the FormState
I attached a sample project where clicking on the Approve
button will disable both buttons in the GridView
. Please let me know if this is close to what you have in mind or I'm missing something.
All the best,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>