Hey Guys! First of all, sorry for my English :P
I have a problem my grid where I have a custom column (checkbox selection and selectAll).
In my columns definition I used the property editable: false, but when my Grid is rendered and I make a click on the column td, my checkbox turn in a input text.
Anyone can help me with this?
this.columns =
[
{
id: 1,
field: "selected",
title: "<input id='selectAll', type='checkbox', class='check-box', ng-click='brand_ctrl.selectAll()' /> ",
template: "<input type='checkbox' ng-model='dataItem.checked' />",
sortable: false, width: 37, locked: true, lockable: false, columnMenu: false, editable: false, reorderable: false, filterable: false, "menu": false, selectable: false
},
{ id: 2, field: 'name', title: 'Name', width: "226px",locked: true, lockable: false}
]
this.kendogrid = {
dataSource: (new kendo.data.DataSource(this.dataSource)),
selectable: "row", sortable: true, pageable: true, scrollable: true, editable: true, batch: true, resizable: true, reorderable: true,
toolbar: this.toolbar,
columnMenu: true,
columns: this.columns
}
I have a problem my grid where I have a custom column (checkbox selection and selectAll).
In my columns definition I used the property editable: false, but when my Grid is rendered and I make a click on the column td, my checkbox turn in a input text.
Anyone can help me with this?
this.columns =
[
{
id: 1,
field: "selected",
title: "<input id='selectAll', type='checkbox', class='check-box', ng-click='brand_ctrl.selectAll()' /> ",
template: "<input type='checkbox' ng-model='dataItem.checked' />",
sortable: false, width: 37, locked: true, lockable: false, columnMenu: false, editable: false, reorderable: false, filterable: false, "menu": false, selectable: false
},
{ id: 2, field: 'name', title: 'Name', width: "226px",locked: true, lockable: false}
]
this.kendogrid = {
dataSource: (new kendo.data.DataSource(this.dataSource)),
selectable: "row", sortable: true, pageable: true, scrollable: true, editable: true, batch: true, resizable: true, reorderable: true,
toolbar: this.toolbar,
columnMenu: true,
columns: this.columns
}