Article Details
Id:20984
Product:finPOWER Connect
Type:NEW
Version:4.01.00
Opened:01/12/2023
Closed:15/03/2024
Released:29/04/2024
Job: J032540

HTML Widgets; Grids; RowMoveUp() and RowMoveDown() functions could act unpredictably for Grids using groupings

Grids which use grouping (i.e., the groupByColumns option was specified when the grid was initialised) could react unpredictably if using the following functions:

  • grid.RowMoveUp()
  • grid.RowMoveDown()

The row would try to move beyond its grouping, which was incorrect.

This has been fixed, and now rows can be moved up and down, but only within their grouping. Attempting to call these functions when the selected row is already at the top (or bottom) of the grouping will have no effect.

Note: The following conditions will not allow rows to be moved:

  • Grids where any column is "sortable".
  • Grids where a custom "Group by Order" has been set when the Grid is initialised.

This is because for Grids configured in this way, the order / sort has been specifically set and therefore the User should not be able to override this. Normally, Grids configured like this are read-only grids, whereas moveable rows are for grids where the data can be edited.