Binding to an expression

3 posts, 1 answers
  1. RDot
    RDot avatar
    5 posts
    Member since:
    May 2009

    Posted 23 Oct 2013 Link to this post

    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. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Oct 2013 Link to this post

    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!
  3. RDot
    RDot avatar
    5 posts
    Member since:
    May 2009

    Posted 24 Oct 2013 Link to this post

    Hi Atanas -

     Thanks for your reply, that is what I needed!

      Have a good day,

      Rob 

      

Back to Top