This question is locked. New answers and comments are not allowed.
Hi
I'm using a grid to list and edit some data items. One field is a boolean that I want to edit using checkboxes.
Following the examples I've configured the column to use a checkbox as follows:
columns.Bound(o => o.Visible).ClientTemplate("<input type='checkbox' disabled='disabled' name='Visible' <#=Visible? checked='checked' : '' #> />");
My problem is that when it goes into edit mode the checkbox is replaced with a dropdown box with the values "Not Set", "True" & "False", and even if the value is already true it appears as "Not Set".
Can anyone suggest a way to fix this?
Thanks
Mark
I'm using a grid to list and edit some data items. One field is a boolean that I want to edit using checkboxes.
Following the examples I've configured the column to use a checkbox as follows:
columns.Bound(o => o.Visible).ClientTemplate("<input type='checkbox' disabled='disabled' name='Visible' <#=Visible? checked='checked' : '' #> />");
My problem is that when it goes into edit mode the checkbox is replaced with a dropdown box with the values "Not Set", "True" & "False", and even if the value is already true it appears as "Not Set".
Can anyone suggest a way to fix this?
Thanks
Mark