var flag = false;
window.orderDataSource[0].OrderDate = null;
var grid = new ej.grids.Grid({
dataSource: window.orderDataSource,
allowPaging: true,
selectionSettings: { mode: 'Both' },
height: 500,
load: load,
dataBound: dataBound
});
function load(args){
flag = this.isInitial;
}
function dataBound(args){
if(flag){
this.columns[0].visible = false;
this.refreshColumns();
flag = false;
}
}
grid.appendTo('#Grid');
|
var flag = false;
window.orderDataSource[0].OrderDate = null;
var grid = new ej.grids.Grid({
dataSource: window.orderDataSource,
allowPaging: true,
selectionSettings: { mode: 'Both' },
height: 500,
rowSelected: rowSelected
});
function rowSelected(args){
console.log(args.data);
}
grid.appendTo('#Grid');
|