1
Help for ParamQuery Pro / Re: How do I change a cell to read-only via the console (Chrume F12key)?
« on: November 26, 2017, 07:56:49 am »
grid.addClass({rowIndx: 2, dataIndx: 'revenue', cls: 'editable'} );
rowIndx is good.
However, dataIndx is always undefined.
So it does not work.
What should I do?
--------------------------------
rowIndx is good.
However, dataIndx is always undefined.
So it does not work.
What should I do?
--------------------------------
you can use this condition based on any arbitrary class.Code: [Select]editable: function(ui){
return this.hasClass({
rowIndx: ui.rowIndx,
dataIndx: ui.dataIndx,
cls: 'editable'
});
}
and assign/ remove a class to cell at runtime.Code: [Select]grid.addClass({rowIndx: 2, dataIndx: 'revenue', cls: 'editable'} );