Not possible to bind enabled/visible to an observable?

2 posts, 2 answers
  1. Answer
    kleist
    kleist avatar
    2 posts
    Member since:
    Oct 2010

    Posted 21 Nov 2013 Link to this post

    Before kendo.ui.Button was available, one could bind a button to an observable like so (binding "enabled" didn't work though):

    <a id='add-button'
       class='k-button'
       data-bind='click: add, visible: isAddButtonVisible'
       >ADD</a>

    Now with the new Button neither "visible" nor "enabled" can be bound, it seems. One has to resort to the enable() method? And as for visibility, bad luck?

    Hopefully I've misunderstood something...
  2. Answer
    kleist
    kleist avatar
    2 posts
    Member since:
    Oct 2010

    Posted 21 Nov 2013 Link to this post

    Ah - never mind: found the MVVM example here: http://demos.kendoui.com/web/button/mvvm.html

    Will try to add this...

        data-role="button"

    ... which wasn't needed before.
  3. Kendo UI is VS 2017 Ready
Back to Top