-
18 Apr 2011 6:15 AM #1
how to set cell editable/noneditable in EditorTreeGrid
how to set cell editable/noneditable in EditorTreeGrid
Hi all. How do i can set some (random ?) cells in EditorTreeGrid to be non-editable ?
-
18 Apr 2011 6:47 AM #2
Hi.
Simply add a BeforeEdit event to the grid, and set the event cancelled to true if you want to make it non editable for the given cell.
Regards,PHP Code:editorGrid.addListener(Events.BeforeEdit, new Listener<GridEvent<BaseModel>>() {
public void handleEvent(GridEvent<BaseModel> be) {
if (not editable) {
be.setCancelled(true);
}
}
});
Michel.
-
18 Apr 2011 7:31 AM #3
Similar Threads
-
how to find current editing cell in EditorTreeGrid
By salmondavid888 in forum Ext GWT: DiscussionReplies: 0Last Post: 18 Apr 2011, 5:36 AM -
NullPointerException when adding cell renderer to EditorTreeGrid
By shroom in forum Ext GWT: DiscussionReplies: 3Last Post: 9 Sep 2009, 1:09 PM -
[2.2.1] Finding the currently editable cell (the current cell) of the GridPanel
By r_honey in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 27 Aug 2009, 2:06 AM -
How to make on particular cell in editor grid as noneditable textfield
By Sivanesan.G in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Nov 2008, 5:34 AM


Reply With Quote