/
SimpleGrid not preserving custom classes [5.2.1]

SimpleGrid not preserving custom classes [5.2.1]

There is built-in JavaScript class in the Admin Console called SimpleGrid. It can be used to create grids, that doesn't require page reload for records to be added/edited/deleted in them.

Interesting part about this class is that it allows to create very complex page layouts, e.g. each row can have multiple rows within it or column column count might vary between the rows.

The bug I've found is hidden in the code, that sets different background for odd/even rows. It works, but in the process drop any custom user classes (e.g. selected), that user might have added to each row in the process.

Solution

Use jQuery to remove odd class and add even class or via versa. This way other classes on the element will be preserved.

Related Tasks

INP-1406 - Getting issue details... STATUS