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

Check if item is enabled

1 Answer 125 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Saop
Top achievements
Rank 1
Saop asked on 07 Oct 2016, 10:31 AM

How can I check if item is enabled? I use function enable:

this.toolbar.enable(`#${id}`, false);

Usually(select, value, data ...) I would check with second element empty(undefined).

1 Answer, 1 is accepted

Sort by
0
Accepted
Iliana Nikolova
Telerik team
answered on 11 Oct 2016, 06:16 AM
Hi MatjaĆŸ,

For this scenario I would suggest checking if item hasClass k-state-disabled. Take a look at the following dojo: 
http://dojo.telerik.com/@Iliana/iYIdO

Regards,
Iliana Nikolova
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Toolbar
Asked by
Saop
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or