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

Disable a Button in the ToolBar

1 Answer 1312 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dee
Top achievements
Rank 1
Dee asked on 11 Apr 2014, 07:39 AM
Hi,

i wan´t to disable one Button in the ToolBar Section of the Grid. How can i do this?

Greetings Dee

1 Answer, 1 is accepted

Sort by
2
Dimiter Madjarov
Telerik team
answered on 11 Apr 2014, 03:36 PM
Hi Dee,

There is no built in way to achieve this. As a workaround, since the click handlers are attached through jQuery delegates via the button classes, you could add/remove the specified class (k-grid-commandname) in order to simulate this. You could take a look at the following example which demonstrates the approach in action. In the example I am also adding the k-state-disabled class to the button, so that it visually looks disabled.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Dee
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or