
Originally Posted by
plaak
Has anyone implemented CellSelectionModel for Livegrid? I don't see any support for it in the code and I could really use it.
Thanks
on the gridpanel this was my way of doing it
Code:
listeners: {
cellclick:function(grid,row,column,event) {
var r = livegrid.getStore().getAt(row);
var fieldName = grid.getColumnModel().getDataIndex(column);
if(fieldName != 'name'){
opennewDialog(r.get('spo'),'index.php?action=view&pid='+r.get('pid')+'&nomenu=1',r.get('pid'))
}
if(r.get('status_change') == 'true' && fieldName == 'name'){ changestatus('Po id '+r.get('pid')+' - '+r.get('jobname'),'index.php?&id='+r.get('pid')+'&moduleid=44|status&nomenu=1&cat=1'); }
}
}
,selModel : new Ext.ux.grid.livegrid.RowSelectionModel()
unsure if its the right way to do it but it works like a charm
not the expert, kinda fumbling thru it...