Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

  • No labels