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

Binding to an expression

2 Answers 292 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
RDot
Top achievements
Rank 1
RDot asked on 23 Oct 2013, 07:08 PM
Hi -

  I want to bind the invisible binding attribute to an expression.   I'm pretty sure expressions work in Knockout but they don't appear to work in kendos implementation of MVVM.

  <input  data-bind="value: addressLine3, invisible: addressCountry == 'USA' "/>

 The expression is pretty simple.

 Thanks,  

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 24 Oct 2013, 06:52 AM
Hi Rob,

 Indeed Kendo UI MVVM doesn't support expressions. You need to use a calculated field (function). More info is available in the documentation.

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
RDot
Top achievements
Rank 1
answered on 24 Oct 2013, 01:41 PM
Hi Atanas -

 Thanks for your reply, that is what I needed!

  Have a good day,

  Rob 

  

Tags
MVVM
Asked by
RDot
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
RDot
Top achievements
Rank 1
Share this question
or