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

Check if item is enabled

1 Answer 582 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Seyfor
Top achievements
Rank 1
Seyfor 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 Dyankova
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
Seyfor
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or