So I'm using 2016.1.412 Telerik controls. MVC Grid UI.
I've followed this (http://www.telerik.com/support/code-library/checkbox-column-and-incell-editing) in order to get one of my boolean? columns to only show a checkbox and allow single click changes. It works if I very carefully click on the check box. If I click (within the cell) but next to the check box I get the drop list with the values "true, false, not set". How do I get rid of the drop list?
1.
columns.Bound(p => p.SendTo).Template(@<
text
></
text
>).ClientTemplate("<
input
type
=
'checkbox'
#= SendTo ?
checked
=
'checked'
:'' #
class
=
'sendtochkbx'
/>")
2.
.Title(GridColumns.SendToPorzio)
3.
.Filterable(true)
4.
.HtmlAttributes(new { style = "text-align: center;" })
5.
.Sortable(false)
6.
.Width(150)
7.
.Locked(true)
8.
.HeaderTemplate("Send To Porzio <
input
type
=
'checkbox'
id
=
'masterCheckBox'
onclick
=
'checkAll(this)'
/> ");
1.
$(
"#SpendGrid"
).on(
'click'
,
2.
'.sendtochkbx'
,
3.
function
() {
4.
var
checked = $(
this
).is(
':checked'
);
5.
var
dataItem = grid.dataItem($(
this
).closest(
'tr'
)); //grid is defined earlier in code block
6.
dataItem.set(
'SendTo'
, checked);
7.
});