Guriddo jqGrid JavaScript 5.1.1 is released.
Hello All,
We are glad to inform you that the new Guriddo jqGrid JavaScript version 5.1.1 is available. This is a bug fix release with more than 30 fixes and a lot of useful additions. Bellow is the detailed description of them.
Additions and Updates
- SetLabel method accept now column name or index of the coulmn.
-
Remove the local _savedData parameter from editRow and replace it with
the global savedData (like savedRow) which now part of Grid parameter for easy access - Add support in loadState for Subgrid
- Add support in loadState for Tree Grid
- getFormData have the same ruled obtaining the values as in createData and syncSavedData
- Update French localization
- Added beforeSetTreeNode and afterSetTreeNode events (grid parameters) in setTreeNode method
- Added method setLeaf, which visually change the icons and data (isLeaf) parameter
- reloadNode method now support updating the current node Leaf status depending if there is a data or not
-
Added debug option in saveState method to generate dump grid file with options and data.
(very useful for test and support) - Added option editselected (default false) in form edit module which allow to edit only the selected rows in multi select mode
- Set $.jgrid.useJSON by default true
- In custom sort function we add the full sort objects as 4 and 5 parameter in order to overcome some Chrome unexpected sort behavior
- Add parameter saveAfterSelect (default false) in inline navigator (inlineNav) to save the row if another is selected
- RTL support for column menu. The column menu is positioned near to column icon
Bug Fixes
- Fix for search operators and search oper menu
- Fix checking compareData function to work properly when checkOnUpdate and/or checkOnSubmit is on
- Fix saveSatate to export correct the data
- Fix savedData array in form editing to have fields only if they are found in template
- Fix the position of column menu with actions
- Fix column menu sort to work with multisort
- Fix for inline saveRow method to show the validation UI dialog.
- Fix for info_dialog syling
- Fix using checkOnUpdate with dataUrl in edit options.
- Fix binding click events in treeGrid after loadState is called. The _index should be refreshed in order to get right positions
- Removing not needed code in grouping
- Fixes in getRowData
- Fix jqGridExport not to delete the additional tree Columns
- Fix toppager css
- Fix for frozen Columns in IE11
- Fix check in our json parse function
- Fix for right border when bootstrap is used with alternate row collor
- Fix for loadState to check selected checkboxes of selected rows when multiselect is set
- Fix for cbox class to not be added two times
- Fix for bootstrap border problems in different grid elements
- Fix prevent click for the disabled check boxes in multiselect mode in IE browsers
- Fix jumping to the top of page when a colmenu is clicked
- Fix multiselect when a checkbox is checked
- Fix setFrozenColumns heigh inconsitencies when the height is not default and/or a rowspan is used
- Fix detecting MS IE <=11. Note that MS Edge is not IE browser
- Fix uniqueSearchFields in filter string
- Fix for RTL scrollbar
- Bootstrap CSS fix for RTL
- Fix semicolon in base module.
- Fix inlineNav when beforeAddRow and beforeEditRow return false not to show the save cancel buttons in inline navigator
delGridRow
reloadAfterSubmit:true
“afterComplete” can’t run
why?
delGridRow
reloadAfterSubmit:true
“afterComplete†can’t run
why?
beforeInitData editGridRow
$(this).setColProp(‘SUBJECT_CODE’,{formoptions:{rowpos:1,colpos:1}});
$(this).setColProp(‘MERGESUBJECT’,{formoptions:{rowpos:1,colpos:2}});
$(this).setColProp(‘SUBJECT_NAME1’,{formoptions:{rowpos:2,colpos:1}});
$(this).setColProp(‘SUBJECT_NAME2’,{formoptions:{rowpos:2,colpos:2}});
beforeInitData viewGridRow
$(this).setColProp(‘SUBJECT_CODE’,{formoptions:{rowpos:1,colpos:1}});
$(this).setColProp(‘MERGESUBJECT’,{formoptions:{rowpos:1,colpos:2}});
$(this).setColProp(‘SUBJECT_NAME1’,{formoptions:{rowpos:1,colpos:3}});
$(this).setColProp(‘SUBJECT_NAME2’,{formoptions:{rowpos:1,colpos:4}});
jqGrid 4.6 is ok,
but now version is bad.
because get maxRows before beforeInitData …..
setGridWidth : function(nwidth, shrink) {
….
if($($t.grid.bDiv)[0].clientHeight < $($t.grid.bDiv)[0].scrollHeight || $t.rows.length === 1){
hs = true;
aw -= scw;
}
….
when $t.p.shrinkToFit==true
$t.p.scrollOffset=18 vertical scrollbar is visable.
$($t.grid.bDiv)[0].clientHeight == $($t.grid.bDiv)[0].scrollHeight
after setGridWidth(…)
vertical scrollbar will disappear