Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:upgrade_from_3.8_to_4.0.0 [2011/04/16 17:15] tony |
wiki:upgrade_from_3.8_to_4.0.0 [2017/12/12 17:05] (current) admin |
||
---|---|---|---|
Line 5: | Line 5: | ||
The module is moved to plugins directory. In case you want to use it you should include it manually. \\ | The module is moved to plugins directory. In case you want to use it you should include it manually. \\ | ||
- | If you want to upgrade you code should be changed as follow: \\ | + | If you want to upgrade you code should be changed as follow:\\ |
^Old Method^Replacement^ | ^Old Method^Replacement^ | ||
|jQuery("#grid_id").jqGrid('getPostData') | jQuery("#grid_id").jqGrid('getGridParam','postData')| | |jQuery("#grid_id").jqGrid('getPostData') | jQuery("#grid_id").jqGrid('getGridParam','postData')| | ||
- | |jQuery("#grid_id").jqGrid('setPostData', newdata) | jQuery("#grid_id").jqGrid('setGridParam',{postData:newdata})| | + | |jQuery("#grid_id").jqGrid('setPostData', newdata) | jQuery("#grid_id").jqGrid('setGridParam',{postData: null}); \\ jQuery("#grid_id").jqGrid('setGridParam',{postData:newdata})| |
|jQuery("#grid_id").jqGrid('appendPostData', newdata) | jQuery("#grid_id").jqGrid('setGridParam',{postData:newdata})| | |jQuery("#grid_id").jqGrid('appendPostData', newdata) | jQuery("#grid_id").jqGrid('setGridParam',{postData:newdata})| | ||
|jQuery("#grid_id").jqGrid('setPostDataItem', 'key', 'val') | jQuery("#grid_id").jqGrid('setGridParam',{postData:{'key':'val'} })| | |jQuery("#grid_id").jqGrid('setPostDataItem', 'key', 'val') | jQuery("#grid_id").jqGrid('setGridParam',{postData:{'key':'val'} })| | ||
- | |jQuery("#grid_id").jqGrid('getPostDataItem', 'key' ) | jQuery("#grid_id").jqGrid('getGridParam', 'postData' })['key'] | | + | |jQuery("#grid_id").jqGrid('getPostDataItem', 'key' ) | jQuery("#grid_id").jqGrid('getGridParam', 'postData' )['key'] | |
- | |jQuery("#grid_id").jqGrid('removePostDataItem', 'key' ) | delete jQuery("#grid_id").jqGrid('getGridParam' ,'postData' })[key] | | + | |jQuery("#grid_id").jqGrid('removePostDataItem', 'key' ) | delete jQuery("#grid_id").jqGrid('getGridParam' ,'postData' )[key] | |
- | |jQuery("#grid_id").jqGrid('getUserData' ) | jQuery("#grid_id").jqGrid('getGridParam', 'userData' })| | + | |jQuery("#grid_id").jqGrid('getUserData' ) | jQuery("#grid_id").jqGrid('getGridParam', 'userData' )| |
- | |jQuery("#grid_id").jqGrid('getUserDataItem','key' ) | jQuery("#grid_id").jqGrid('getGridParam', 'userData' })[key] | | + | |jQuery("#grid_id").jqGrid('getUserDataItem','key' ) | jQuery("#grid_id").jqGrid('getGridParam', 'userData' )[key] | |
=== 2. The grid.setcolumns.js module is no more supported. === | === 2. The grid.setcolumns.js module is no more supported. === |