PDA

View Full Version : xg.EditorGrid



shoarh
7 Apr 2010, 1:41 AM
Hi ,All,

I get a EditorGrid, but I want to control the the grid property editable via code,

that is to say , I want to let some people have the permition to edit this grid ,

some people do not have the permition to edit the grid ,

but it seems that there is not property in Editorgrid ( I use xg.EditorGridPanel ) can be use to fullfill what I want ,

Is any body has idea ? or tell me how to control the EditorGrid ,let it editable... thx...

fay
7 Apr 2010, 4:45 AM
You've got several ways to achieve this: set editable to false when configuring your EditorGridPanel's columns (http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.Column&member=editable); use the beforeedit (http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.EditorGridPanel&member=beforeedit) event; or the isCellEditable (http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.ColumnModel&member=isCellEditable) method.