Check if item is enabled

2 posts, 1 answers
  1. Matjaž
    Matjaž avatar
    87 posts
    Member since:
    Jul 2015

    Posted 07 Oct 2016 Link to this post

    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).

  2. Answer
    Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 11 Oct 2016 Link to this post

    Hi Matjaž,

    For this scenario I would suggest checking if item hasClass k-state-disabled. Take a look at the following dojo:

    Iliana Nikolova
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top