Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Row Selection now in Grid State & Presets

Choose a tag to compare

@ghiscoding ghiscoding released this 31 Jan 23:18
· 2576 commits to master since this release

Row Selections in Grid State & Presets

Row Selections are now included in the Grid State & Presets, I didn't want to include them in the past mainly because I always thought that it wasn't keeping the selection properly after filtering/sorting/... but then I learned about syncGridSelection and how it works. This flag allows to actually keep in memory the row selection, even when row is not visible... with this, it's now part of the Grid State & Presets and it even works with Local Grid Pagination (that required a lot of work though). The syncGridSelection is still a flag that that can be disabled in the Grid Options if you wish to not preserve the hidden selections. You can see Example 10 - Row Selections and Example 16 - Grid State

Note when using BackendServiceApi

However please note that even if syncGridSelection is enabled by default, it is disabled when using a BackendServiceApi it is disabled with an extra flag syncGridSelectionWithBackendService, you could enable it if you want but you might have unintended behaviors because Backend Services changes the DataView every single time there's a page change.

Again if you like the lib, please upvote if you haven't yet. ⭐️

Cheers ☕️

Features

  • menus: add "onAfterMenuShow" event to all possible menu plugins (#389) (141d01a)
  • selection: add flag to disable syncGridSelection w/BackendService (#390) (f29c6f0)
  • selection: preserve row selection & add it to Grid State & Presets (#388) (a50d489), closes #295
  • excel: add some extra styling & width options for Excel export (#403) (d87ce2c)
  • tests: update to latest Cypress version (dc3afa9)
  • sort: add default sort field as grid option (00b0751)

Fixes

  • rowDetail: add datasetIdPropertyName option in Row Detail, (#391) (197ea9f), fixes #387
  • backend: updateOptions can be use with partial options - TS type (80bdaa5)
  • footer: custom footer should work anytime pagination is disabled (7d9798a)
  • locales: fix some Locales not showing up when not using Translate (#392) (4d5e65b)
  • pagination: on filter change pagination should reset to 1st page (#397) (af64dd6)
  • selection: filter data should work with row selection, closes #295 (#393) (f36a4f7)
  • selection: row selection always be kept, closes #295 again (#399) (5e8f1df)
  • editor: LongText Editor save button that was not working properly (90beeac)
  • mousewheel: add jquery mousewheel lib to fix scroll in frozen grid (d2bc0e7)
  • columns: add/remove columns dynamically, fixes #406 (324cb1a)
  • example: should re-render after clearing groups, fixes #407 (7752abd)
  • columns: remove columns dynamically with Editors, fixes #406 (903473d)
  • formatters: decimalSeparator & thousandSeparator work tgt, fix #411 (67318d5)