Enable Sorting on disabled grid

Hi,

Is there a way to enable sorting on disabled grid? I have a grid which is disabled (so user cant interact with checkboxes in the columns) however in this state as expected the grid does not update when I click on sorting. Is there any workaround? My idea would be to somehow make the checkboxes in the columns disabled/readonly instead of the whole grid.

Thanks
Erik

At least you can’t use enabled/disabled state of the Grid - a component that is not enabled should not (and must not) send any RPC calls to the server as a security measure. This includes sorting.

Solved the issue with using a disabled flag for the checkboxes with component renderer, this way only the checkboxes are disabled so sorting works:

grid.addColumn(new ComponentRenderer<>(item → {
Checkbox checkbox = new Checkbox();
checkbox.setValue(item.isAllowed());
checkbox.setEnabled(gridSelectionEnabled);
return checkbox;
}))