FormulaGrid [message #1817681] |
Wed, 27 November 2019 19:42 |
dhruba kumar Messages: 51 Registered: September 2012 |
Member |
|
|
We have a table with Two Column : Column A, Column B
Column A -> Is Not Editable
Column B -> Is Editable
Now If we make all cell editable then only "Copy/Series"is working . But if Col A is not editable and Col B is editable , then "Copy/Series" menu is showing . But clicking on it has no effect.
we are using below code:
natTable.addConfiguration(new FillHandleConfiguration(bodyLayer.getSelectionLayer()));
// This is the formula specific configuration
natTable.addConfiguration(
new MyDefaultFormulaConfiguration(
bodyLayer.getFormulaDataProvider(),
bodyLayer.getSelectionLayer(),
natTable.getInternalCellClipboard()));
bodyLayer.getFormulaDataProvider().setErrorReporter(new FormulaTooltipErrorReporter(natTable, bodyLayer.getDataLayer()));
this.natTable.configure();
natTable.doCommand(new EnableFormulaEvaluationCommand());
In MyDefaultFormulaConfiguration ,:
Instead of All column Editable , we are making editable only Column B. Column A is not editable, The Cell Fill "Copy/Series" is showing , but not working:
public void configureRegistry(IConfigRegistry configRegistry)
{
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
IEditableRule.ALWAYS_EDITABLE,COLUMN_B_LABEL);
If we make all cell editable , then only its working.:
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
IEditableRule.ALWAYS_EDITABLE);
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03843 seconds