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

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

4 Answers 116 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Mathias
Top achievements
Rank 1
Mathias asked on 01 Apr 2012, 07:22 PM
Hi,
KnockoutJS "valueUpdate" additional parameter for "value" binding is really missing in your implementation.
Pleasure consider adding such a setting, thx!
Mat

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Apr 2012, 07:29 AM
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!
0
Mathias
Top achievements
Rank 1
answered on 02 Apr 2012, 02:27 PM
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

0
Atanas Korchev
Telerik team
answered on 02 Apr 2012, 02:51 PM
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!
0
Mathias
Top achievements
Rank 1
answered on 02 Apr 2012, 03:46 PM
"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
Tags
MVVM
Asked by
Mathias
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Mathias
Top achievements
Rank 1
Share this question
or