View Mode of Grid Enhancements

Issue #90 resolved
Ghislain Hachey created an issue

From #83 creating a seperate issue for this to keep things in smaller more manageable tasks.

Putting in edit mode is not the same as showing different set of columns in the grid. Each possible set of columns for an entity ( eg. Schools) is defined as a "viewMode" in the set of available viewModes. These viewModes define:

  • a columnSet property, passed to the server to get the appropriate set of data;
  • gridOptions, including columnDefs, corresponding pretty closely to the gridOptions/columnDefs of ui-grid
  • some additional info relating to editability.

So a view mode may be editable or not editable, and that may be permission-dependant. Within the editable viewMode, some columns may still be read-only.

Currently, when an editable view mode is invoked, it is immediately in "edit mode". The row-header column is added to the left of the grid.

So following from Ghislain's idea above I'd suggest :

  • that when an editable view mode is loaded, an Edit Button is displayed to the right of the View Mode selector.
  • the view is loaded in read-only mode
  • if the user select Edit Mode: -- the row header column is added to show the row status -- the editable columns are indicated somehow using CSS.

Comments (2)

  1. Log in to comment