andreea.spirea
21 Jul 2009, 6:49 AM
Hi,
I have an EditorTreeGrid with several columns containing checkboxes, and I am trying to disable the editing for a certain column, so far unsuccessfully.
The columns look like this:
CheckColumnConfig invisibleColumn = new CheckColumnConfig(
INVISIBLE, "Invisible", 50);
//......................
tree.addPlugin(invisibleColumn);
and then I tried the following in various combinations:
CheckBox box = new CheckBox();
box.disable();
box.setReadOnly(true);
invisibleColumn.setEditor(new CellEditor(box));
invisibleColumn.getEditor().disable();
I tried to disable only the checkbox or only the editor, and I also tried to do this in a listener for Render event.
Could you please have a look at this?
Thanks.
I have an EditorTreeGrid with several columns containing checkboxes, and I am trying to disable the editing for a certain column, so far unsuccessfully.
The columns look like this:
CheckColumnConfig invisibleColumn = new CheckColumnConfig(
INVISIBLE, "Invisible", 50);
//......................
tree.addPlugin(invisibleColumn);
and then I tried the following in various combinations:
CheckBox box = new CheckBox();
box.disable();
box.setReadOnly(true);
invisibleColumn.setEditor(new CellEditor(box));
invisibleColumn.getEditor().disable();
I tried to disable only the checkbox or only the editor, and I also tried to do this in a listener for Render event.
Could you please have a look at this?
Thanks.