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

bind widget to model -> not update by value

0 Answers 91 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 29 Mar 2012, 01:22 PM
kendoui.web.2012.1.322

I
bind my model to a table.
If I update the values ​​with widget, the model is updated.
If I set the value of the widget by value, the model is not updated.
This happens both for the dropdownlist and for both the numerictextbox.

ex.:
var modelDett = $("#nsgridDett").data("kendoGrid").dataSource.getByUid(nsRowDettSelectUid);
kendo.bind($("#tableDetail"), modelDett);

// not update model
var importoKM = 100;
$("#txtImporto").data("kendoNumericTextBox").value(importoKM); //txtImporto -> input of tableDetail

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Mike
Top achievements
Rank 1
Share this question
or