Hello,
I have a requirement where I have to disabled the rows in the data table but , user can scroll and view the data in the data table, can you please suggest a proper way to handle it.
Hello,
I have a requirement where I have to disabled the rows in the data table but , user can scroll and view the data in the data table, can you please suggest a proper way to handle it.
There is no such concept as disabled row.
Datatable allows to make some rows not-selectable and not editable. It can be done with a help of event handlers ( onBeforeSelect and onBeforeEditStart events )
Please example for treetable (with checkbox)
ready:function() {
this.attachEvent(“onBeforeEditStart”, function(id) {
this.unselect(id.row, id.column)
})
}
does not work
How to block a particular row in treetable (with checkbox) ?
This did the trick for me:
on: {
'onBeforeEditStart': function (item) {
var me = this;
if (item.row.indexOf('$') !== -1) {
me.unselectAll();
return false;
}
}
but only to disable the row edit. But I guess if you just check the column you can do the same for both column and row.