Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
wiki:inline_editing [2012/09/05 13:23] paulodiogo |
wiki:inline_editing [2013/12/17 20:07] logantracyo Typo fix |
||
---|---|---|---|
Line 27: | Line 27: | ||
These methods can be called, of course, only on an already-constructed grid, from a button click or from an event of the grid itself: | These methods can be called, of course, only on an already-constructed grid, from a button click or from an event of the grid itself: | ||
- | Exmaple: | + | Example: |
<code javascript> | <code javascript> | ||
Line 50: | Line 50: | ||
Calling conventions: | Calling conventions: | ||
<code javascript> | <code javascript> | ||
- | jQuery("#grid_id").editRow(rowid, keys, oneditfunc, succesfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); | + | jQuery("#grid_id").editRow(rowid, keys, oneditfunc, successfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); |
</code> | </code> | ||
or when we use the new API | or when we use the new API | ||
<code javascript> | <code javascript> | ||
- | jQuery("#grid_id").jqGrid('editRow',rowid, keys, oneditfunc, succesfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); | + | jQuery("#grid_id").jqGrid('editRow',rowid, keys, oneditfunc, successfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); |
</code> | </code> | ||
Line 105: | Line 105: | ||
- | If keys is true, then the remaining settings -- succesfunc, url, extraparam, aftersavefunc, errorfunc and afterrestorefunc - are passed as parameters to the saveRow method when the [Enter] key is pressed (saveRow does not need to be defined as jqGrid calls it automatically). For more information see saveRow method below. \\ \\ | + | If keys is true, then the remaining settings -- successfunc, url, extraparam, aftersavefunc, errorfunc and afterrestorefunc - are passed as parameters to the saveRow method when the [Enter] key is pressed (saveRow does not need to be defined as jqGrid calls it automatically). For more information see saveRow method below. \\ \\ |
When this method is called on particular row, jqGrid reads the data for the editable fields and constructs the appropriate elements defined in edittype and editoptions | When this method is called on particular row, jqGrid reads the data for the editable fields and constructs the appropriate elements defined in edittype and editoptions | ||
Line 113: | Line 113: | ||
Calling convention: | Calling convention: | ||
<code javascript> | <code javascript> | ||
- | jQuery("#grid_id").saveRow(rowid, succesfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); | + | jQuery("#grid_id").saveRow(rowid, successfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); |
</code> | </code> | ||
or when we use the new API | or when we use the new API | ||
<code javascript> | <code javascript> | ||
- | jQuery("#grid_id").jqGrid('saveRow',rowid, succesfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); | + | jQuery("#grid_id").jqGrid('saveRow',rowid, successfunc, url, extraparam, aftersavefunc,errorfunc, afterrestorefunc); |
</code> | </code> | ||
Line 126: | Line 126: | ||
jQuery("#grid_id").jqGrid('saveRow',rowid, | jQuery("#grid_id").jqGrid('saveRow',rowid, | ||
{ | { | ||
- | succesfunc: function( response ) { | + | successfunc: function( response ) { |
return true; | return true; | ||
} | } |