Checkbox Not Working
Checkbox Not Working

Hi,
There is no change in the database when I check the checkbox.
Controller: .Field(new Field("Offer"))
{
label: "Offer",
name: "Offer",
type: "checkbox",
separator: "|",
options: [
{ label: "", value: "1" }
],
},
{
data: "Offer",
className: 'text-left font-bold',
title: 'Offer',
render: function (data, type, row) {
if ( type === 'display' ) {
return '<input type="checkbox" class="editor-offer">';
}
return data;
}
$('#' + tableId).on('change', 'input.editor-offer', function () {
editor
.edit($(this).closest('tr'), false)
.set('Offer', $(this).prop('checked') ? 1 : 0)
.submit();
} );
This discussion has been closed.
Answers
There's lots of places where the problem could be. What troubleshooting steps have you taken? I would look at the following:
Kevin