Check if item is enabled

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

    Posted 07 Oct 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
    2595 posts

    Posted 11 Oct 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.
  3. Kendo UI is VS 2017 Ready
Back to Top