REQUESTED FEATURE: a "valueUpdate" property for "value" binding

5 posts, 0 answers
  1. Mathias
    Mathias avatar
    4 posts
    Member since:
    Feb 2012

    Posted 01 Apr 2012 Link to this post

    Hi,
    KnockoutJS "valueUpdate" additional parameter for "value" binding is really missing in your implementation.
    Pleasure consider adding such a setting, thx!
    Mat
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 02 Apr 2012 Link to this post

    Hello,

     Already supported. Check the second textbox in this demo: http://demos.kendoui.com/web/mvvm/elements.html 

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Mathias
    Mathias avatar
    4 posts
    Member since:
    Feb 2012

    Posted 02 Apr 2012 Link to this post

    OK, checked, thank you.
    But :
    - this feature is missing in documentation
    - in your demo page, the row "text with update on keyup event" is missing in "View source code:" panel
    - accordingly to your nice configuration philosophy of translation between options and data-* attributes, I should set the "data-value-update" parameter with a "valueUpdate" option in "data-bind" attribute, isn't-it? It doesn't work yet...
    - please support additional events for this parameter; such as the "afterkeydown" of KnockoutJS; "keyup" doesn't handle my need 
    Regards, Mat

  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 02 Apr 2012 Link to this post

    Hello,

     You are right that the data-value-update attribute is not yet documented. We will update the documentation to include this setting. We will also update the examples.

     The data-bind attribute is meant only for binding purposes. Any configuration settings are set via separate data attributes.

     Implementing afterkeydown is possible however requires a setTimeout because the value is not updated when the keydown event is raised. We would really like not to include such code because it is very hard to test and is a potential performance hit.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Mathias
    Mathias avatar
    4 posts
    Member since:
    Feb 2012

    Posted 02 Apr 2012 Link to this post

    "The data-bind attribute is meant only for binding purposes. Any configuration settings are set via separate data attributes."
    Personally, binding configuration in "binding purposes" attribute hurts me less than the multiplication and overuse of data-* attributes we can expect with HTML5...

    I really appreciate the performance requirement in your framework, Kendo UI is really an amazing product but your MVVM implementation is not enough mature yet; I think I must switch back to Knockout for now. I regret this, I prefer your "all observable" and clean get/set approach (the other reasons of this move, is the very elegant templating system of Knockout 2.0 and its community).

    Mat
Back to Top