title: Kendo UI Grid - Custom command button disabled depending on boolean property
body: <p>How can I set the class to disabled for a custom command on a Kendo grid depending on the boolean value of a property?</p>
  
  <p>I want to use this approach to make the button disabled:
  <a href="https://docs.telerik.com/kendo-ui/knowledge-base/disable-the-grid-command-buttons" rel="nofollow noreferrer">https://docs.telerik.com/kendo-ui/knowledge-base/disable-the-grid-command-buttons</a></p>
  
  <p><strong>Javascript:</strong></p>
  
  <pre><code>{ command: { name: "custom", text: "Exclude", click: excludeCategorization }, title: "&amp;nbsp;", width: "60px" }
  </code></pre>
  
  <p>I want to add a condition like this using the property <code>IsEnabled</code> but if possible using the <code>k-state-disabled</code> class</p>
  
  <pre><code>#= IsEnabled ? disabled="disabled" : "" # 
  </code></pre>