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

Not possible to bind enabled/visible to an observable?

1 Answer 60 Views
Button
This is a migrated thread and some comments may be shown as answers.
kleist
Top achievements
Rank 1
kleist asked on 21 Nov 2013, 06:22 PM
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...

1 Answer, 1 is accepted

Sort by
0
Accepted
kleist
Top achievements
Rank 1
answered on 21 Nov 2013, 06:37 PM
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.
Tags
Button
Asked by
kleist
Top achievements
Rank 1
Answers by
kleist
Top achievements
Rank 1
Share this question
or