Disable Control-Buttons of RadGridView

Using Telerik’s RadGridView, one can connect the add, update, cancel and delete command to RadButtons by setting the


properties of the buttons and link to the grid by setting the

CommandTarget="{Binding ElementName=GridViewName}"


For some reasons, I needed to disable the buttons, depending on the rights the currently logged in user has. Setting

button.IsEnabled = false;

during runtime did not work, for whatever reasons. But setting


during runtime, without disabling the button, worked fine. Resetting the button’s CommandTarget to the associated RadGridView re-enabled the button.

I tend to call this a bug. Luckily, there is an easy work around.