Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
wiki:methods [2012/09/04 08:09]
tsahi saveRow callback parameter - xmlhttprequest
wiki:methods [2012/09/05 07:34]
tsahi clarify on saveRow
Line 112: Line 112:
 |resetSelection|none|jqGrid object|Resets (unselects) the selected row(s). Also works in multiselect mode.| |resetSelection|none|jqGrid object|Resets (unselects) the selected row(s). Also works in multiselect mode.|
 |restoreRow|rowid|none?​|Restores the data to original values before the editing of the row specified by **rowid**.| |restoreRow|rowid|none?​|Restores the data to original values before the editing of the row specified by **rowid**.|
-|saveRow|rowid,​\\ callback,\\ url,\\ extraparams\\ |none?​|Saves the row specified by **rowid**. **callback** is a function called after the save is complete. The function accepts an XMLHttpRequest object with the response from the server. **url** is the URL used to submit the values. If specified, this value overrides the value specified by the [[options|editurl]] option. **extraparas** are additional parameters passed to the server. Data is posted in the form  id=rowid&​name=value...,​ where the name is the "​name"​ from [[colmodel_options|colModel]].|+|saveRow|rowid,​\\ callback,\\ url,\\ extraparams\\ |none?​|Saves the row specified by **rowid**, after it has been opened for editing mode by the editRow method. **callback** is a function called after the save is complete. The function accepts an XMLHttpRequest object with the response from the server. **url** is the URL used to submit the values. If specified, this value overrides the value specified by the [[options|editurl]] option. **extraparas** are additional parameters passed to the server. Data is posted in the form  id=rowid&​name=value...,​ where the name is the "​name"​ from [[colmodel_options|colModel]].|
 |setCaption|caption|jqGrid object|Sets a new caption of the grid. If the Caption layer was hidden, it is shown.| |setCaption|caption|jqGrid object|Sets a new caption of the grid. If the Caption layer was hidden, it is shown.|
 |setCell|rowid,​\\ colname, \\ data, \\ class, \\ properties, \\ forceup|jqGrid object|This method can change the content of particular cell and can set class or style properties. Where: \\ //rowid// the id of the row, \\ //colname// the name of the column (this parameter can be a number (the index of the column) beginning from 0 \\ //data// the content that can be put into the cell. If empty string the content will not be changed \\ //class// if class is string then we add a class to the cell using addClass; if class is an array we set the new css properties via css \\ //​properties//​ sets the attribute properies of the cell, \\ //forceup// If the parameter is set to true we perform update of the cell instead that the value is empty | |setCell|rowid,​\\ colname, \\ data, \\ class, \\ properties, \\ forceup|jqGrid object|This method can change the content of particular cell and can set class or style properties. Where: \\ //rowid// the id of the row, \\ //colname// the name of the column (this parameter can be a number (the index of the column) beginning from 0 \\ //data// the content that can be put into the cell. If empty string the content will not be changed \\ //class// if class is string then we add a class to the cell using addClass; if class is an array we set the new css properties via css \\ //​properties//​ sets the attribute properies of the cell, \\ //forceup// If the parameter is set to true we perform update of the cell instead that the value is empty |

QR Code
QR Code wiki:methods (generated for current page)