I am working on MVC project using knockout JS.
I need to enable & disable the kendoNumericTextbox control on checkbox value.
But I need to disable the numeric control when checkbox is checked. i.e if
checked = true then enabled = false. Is there a way to pass the inverse value
to numeric enabled option.
And I have to implement similar functionality to KendoDatepicker. Could you
please suggest any solution for both the controls. Here is my code -
<input class="" type="text"
data-bind="kendoNumericTextBox: {value:FloatValue, min: 0.01, decimals: 2,
format: 'n2' , enabled:CheckboxValue} " />
<input type="checkbox" data-bind="checked:
CheckboxValue"> Null
I need to enable & disable the kendoNumericTextbox control on checkbox value.
But I need to disable the numeric control when checkbox is checked. i.e if
checked = true then enabled = false. Is there a way to pass the inverse value
to numeric enabled option.
And I have to implement similar functionality to KendoDatepicker. Could you
please suggest any solution for both the controls. Here is my code -
<input class="" type="text"
data-bind="kendoNumericTextBox: {value:FloatValue, min: 0.01, decimals: 2,
format: 'n2' , enabled:CheckboxValue} " />
<input type="checkbox" data-bind="checked:
CheckboxValue"> Null