Released: Aug 23, 2022
Mises à jour de 1.4.0
Fonctionnalités
Added state management functionality:
- ZingGrid has the ability to preserve its state between page load. The following states are preserved: column position, column visibility, column width, filter, frozen columns, frozen rows, layout, page, page size, row selector, search, selector and sort.
Added support for setting the data source to be HTML tables:
- Added support for setting [is="zing-grid"] attribute HTML tables.
- Added dataZgFrozenColumn to columns.
- Added the following <zg-param> names to support datatype rendering: - [name="tableHide"] - [name="tableHead"] - [name="tableDataFormat"] - [name="tableHeadFormat"].
Added capability to detect type of static data source based on content:
- Added the param to specify if the static data type is HTML (table), CSV ,XML, or JSON (default).
- Added the param to specify that the CSV data source first line contains a caption.
- Added support for static CSV datasources.
- Added support for static XML datasources.
New column type: Row duplicate:
- Adds a column of buttons to duplicate the associated row.
Other features:
- Added recordKey attribute to <zing-grid> to automatically add the key value as a column.
- Added typeNumberDecimals and typeNumberMaxDecimals to currency column type.
- Added typeNumberMinDecimals to explicitly set the minimum decimals.
- Added server side filtering functionality.
- Added filterkey attribute to <zg-column>.
- Added serverFilter to to <zg-param>, this and loadByPage are required to turn on server side filtering.
- Added ability to set staticMenu to a custom context menu without using contextMenu attribute.
- Added refresh of column types after registerCellType is called.
- Added new events: grid:sort, column:togglevisibility, and column:move.
- Added headerRowHide attribute to <zing-grid> to enable hiding header rows.
Correctifs
- Fixed issue going from custom context menu to built in.
- Fixed issues clearing the state.
- Changed decimal behavior in number, currency, and percentage column types to use the JavaScript default. Can override with typeNumberMinDecimals, typeNumberMaxDecimals, and/or typeNumberDecimals.
- Fixed issue updating staticMenu.
- Reimplemented typePercentageDecimals and typePercentageMaxDecimals.
- Fixed issues with currencyRenderer.
- Fixed issues with table data source.
- Fixed issues with recordKey column type.
- Fixed default zebra striping to work with frozen rows.
- Fixed bug processing data when the data object has a '.' in the key value. The '.' is used for data path and hierarchical columns. You can set this to another key or disable it by setting the nesteddataseparator attribute on <zing-grid>.
- Fixed refreshGrid bug