Columns are not editable [message #1727341] |
Tue, 22 March 2016 09:43 |
Rashmi Tr Messages: 22 Registered: November 2011 |
Junior Member |
|
|
In my Nattable, there is SpanningDataLayer and on top of that ColumnHideShowLayer,SelectionLayer,ViewportLayer,FreezeLayer,CompositeFreezeLayer.
Then I add labels to Columns which should be editable and I extended AbstractRegistryConfiguration as explained in Nattable Documentation.
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITABLE_RULE, IEditableRule.ALWAYS_EDITABLE,
columnLabels_editable);
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR,new TextCellEditor(true, true),
DisplayMode.NORMAL, columnLabels_column1);
ComboBoxCellEditor comboBoxCellEditor = new ComboBoxCellEditor(values, -1);
comboBoxCellEditor.setFreeEdit(true);
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor, DisplayMode.EDIT,
columnLabels_column2);
configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER,
new CustomLineBorderDecorator(new ComboBoxPainter(),
new BorderStyle(1, GUIHelper.COLOR_BLUE, LineStyleEnum.SOLID)),
DisplayMode.NORMAL, columnLabels_column2);
I added this to nattable configuration. But the Columns are still not editable.What could be the reason?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02708 seconds