Guriddo jqGrid JS version 5.9.0 is released
Hello,
We are glad to announce the new release of Guriddo jqGrid JavaScript version 5.9.0.
This version is a minor release and add replaces the existing features which causes problems and can not be used full.
The first one is the local data manipulation, where we have a used a eval based new Function to parse the data. This causes jqGrid not to run in CSP. The new module is rewritten and currently we do not use any eval and new Function
The second one in list is the virtual scroll. This module is entirely rewritten and currently we support variable row height virtual scroll. See the docs for the setup. The old virtual scroll is still available for compatibility.
Loading the grid state with loadState does not require eval anymore. We can now safely save and load the grid state.
The release has a lot of important bug fixes.
For a full list of additions and fixes look below:
Additions and Updates
- Replace the old local data manipulation engine of Hugo Bonacci with the new one v3.0.1, which does not use eval and new Function
- Rewrite virtual scroll module. See
- Removing the runCode function which run simulated eval and optimizing the JSON parse function
- Make pivot grid and tree grid to work properly with the new local engine
- Change autoSelect method to work with the new local engine
- parseFunc which convert json string, containing functions, is rewritten so that it does not use new Function. The idea is to parse the json string, separate the functions and then include the string which contain functions as JavaScript in the code. This is dirty hack, but I do not see any other way to save the existing users not to change existing code.
- Restore grid state (loadState method) use the same approach of separating the functions. To make the script compatible with CSP the nonce parameter is added which should cover the the case when it is used. See (read to the end)
- To overcome errors in frozenrows is added baseclass , so the user can set any custom additional class for the frozen rows. See setFrozenRows method.
- Now it is possible to add aria-label in column headers via property arialabel in colModel
- Add aria-label to close button x in modal
- Updates in lang files
- Add dataCleaner to local data to strip not needed keys in the input local data array (as from example Ember data)
Bug Fixes
- Fix saving unformated value in case of calculating the sumarries at once in pivot grid
- Fix pivot to get and calculate all the data at once
- Fix template select search dialog for jQueryUI
- Try to fix double pixel border when frozen columns in bootstrap 4
- Change class names for toast to overcome conflicts with other plug-ins. See :
- Small improvements for frozen columns for bootstrap 5
- Fixes in getFormData in form editing to work correct with custom value and functions
- Fix for select element in case the split gets only one element to separate value and label
- Fix button position in info_dialog
- Fix adding the case when sorttype is function in local database manipulation (new engine)
- Fix transparency when grouping and the group value is shown. Now the content of the first cell in grouped row is shown correctly.
- Fix set ExpandColumn in case if it is not set in grid params.
- Fix setRowData title when TreeGrid and ExpandColumn. See :
- Fix In frozen columns methods we add ‘if ( !this.grid ) {return;}’
- Fix unformat in expand column when of treegrid in form editing. See:
- Accessibility fix: Adding role img to sorting icon
- Accessibility fix: To the pager records per page select box added aria label attribute and removed roles listbox and option form the self described element select and option
- Accessibility fix: added label for pager input text box
- Fix pager height in bootstrap 5. We need to have a value.
- Fix Columns without name should have title attribute
- Fix Set sufficient color contrast for no records to view row
- Fixes for search dialog for input and select elements to have aria-label
- Fixes for subgrid – add title attribute to button when expand and collapse row
- Fix Accesibilty improvements in form editing
- Fix Accessible park-able buttons in delete form
- Fix Make delete dialog parkable
- Fix pivotgrid to use datatype local
- Fix Adding aria-label to all elemets created with jgrid.createEl
- Fix exportToexcel includeHeader and includeFoooter . The export of these is possible only if the flag is true and the header footer row are enabled.
- Fix comboGrid method to use tab and to select correct values when enter key is pressed
- Fix – prevent json parse when empty string
Happy coding
Guriddo Team
Recent Comments