the thing is I binded only partly:
input.attr('data-bind', String.format('jqxEditor: {value: {0}.dv}', columnName));
var feditor = new ko.jqwidgets.dataBinding({
name: "jqxEditor",
source: null,
disabled: false,
value: "",
reset: function () {
this.disabled = false;
this.source = null;
},
events: ['change'],
getProperty: function (object, event, eventName) {
if (eventName == 'change') {
return {
name: 'val',
value: object.host.val()
}
}
},
setProperty: function (I, J, K, L) {
if (J == "source") {
I.host.jqxEditor({
source: L
})
}
if (J == "disabled") {
I.host.jqxEditor({
disabled: L
})
}
if (J == "value") {
I.host.jqxEditor({
value: L
})
}
}
});
getProperty works fine but setProperty has never been invoked
why is it so?
if I screwed up somewhere please give me a hint?