Hello all! thank for this great product.
I use a grid with popup editor for insert and edit grid rows.
in template I use radio button group
<script type="text/x-kendo-template" id="popup_editor">
<input id="4" type="radio" name="Condition" checked=true data-bind="NRDisabled : ChequeNotPassedChange" />
<input id="5" type="radio" name="Condition" data-bind="NRDisabled : ChequeReturnedChange" />
<input id="8" type="radio" name="Condition" data-bind="NRDisabled : ChequeNaghdiChange" />
</script>
and the properties defined in viewmodel
var viewModel = kendo.observable({
ChequeNaghdiChange:false,
ChequeReturnedChange:false
........
the NRDisabled is used for disable and enable control and its work perfectly out of popup by simple set true or false property
viewModel.set("ChequeNaghdiChange",false);
kendo.data.binders.NRDisabled = kendo.data.Binder.extend({
refresh: function () {
if (this.bindings.NRDisabled.get()) {
this.element.setAttribute("disabled", "disabled");
} else {
this.element.removeAttribute("disabled");
}
}
});
It's seems property binding have some problem in kendo.
Best Regards
Amir
I use a grid with popup editor for insert and edit grid rows.
in template I use radio button group
<script type="text/x-kendo-template" id="popup_editor">
<input id="4" type="radio" name="Condition" checked=true data-bind="NRDisabled : ChequeNotPassedChange" />
<input id="5" type="radio" name="Condition" data-bind="NRDisabled : ChequeReturnedChange" />
<input id="8" type="radio" name="Condition" data-bind="NRDisabled : ChequeNaghdiChange" />
</script>
and the properties defined in viewmodel
var viewModel = kendo.observable({
ChequeNaghdiChange:false,
ChequeReturnedChange:false
........
the NRDisabled is used for disable and enable control and its work perfectly out of popup by simple set true or false property
viewModel.set("ChequeNaghdiChange",false);
kendo.data.binders.NRDisabled = kendo.data.Binder.extend({
refresh: function () {
if (this.bindings.NRDisabled.get()) {
this.element.setAttribute("disabled", "disabled");
} else {
this.element.removeAttribute("disabled");
}
}
});
It's seems property binding have some problem in kendo.
Best Regards
Amir