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:cell_editing [2011/08/31 21:18]
kees
wiki:cell_editing [2011/08/31 21:44]
kees
Line 50: Line 50:
 |serializeCellData|postdata|If set this event can serialize the data passed to the ajax request when we save a cell. The function should return the serialized data. This event can be used when a custom data should be passed to the server - e.g - JSON string, XML string and etc. To this event is passed the data which will be posted to the server| |serializeCellData|postdata|If set this event can serialize the data passed to the ajax request when we save a cell. The function should return the serialized data. This event can be used when a custom data should be passed to the server - e.g - JSON string, XML string and etc. To this event is passed the data which will be posted to the server|
  
 +==== Event calling stack ====
  
-Below is the order of which the events are called when the cellsubmit option is '​remote'​+Depending on your cellSubmit setting set to '​remote' ​or '​clientArray'​ the following events will be fired in the following order:
  
-if a cell is editable then \\  +=== cellSubmit setting '​remote'​ ===
-1. formatCell - format and the value of the cell can be changed before editing \\  +
-2. beforeEditCell \\  +
-3. afterEditCell - after the input element is created \\  +
-4. beforeSaveCell ​ \\  +
-5. beforeSubmitCell ​ \\  +
-if the submit is successfully \\ +
-6. afterSubmitCell \\  +
-7. afterSaveCell \\  +
-else \\  +
-6. errorCell \\  +
-else if the cell is not editable \\  +
-1. onSelectCell \\ +
  
-If the cellsubmit ​is '​clientArray'​ then \\  +  - **formatCell** (//rowid, cellname, value, iRow, iCol//) : You can change ​the cell value here which will be used in the edit mode 
-if cell is editable then \\  +  - **beforeEditCell** (//rowid, cellname, value, iRow, iCol//) : Just before the cell jumps into edit mode this event is fired 
-1. formatCell ​format and the value of the cell can be changed before editing \\  +  - **afterEditCell** (//rowid, cellname, value, iRow, iCol//) : Just after the input element is created this event will be fired 
-2. beforeEditCell ​\\  +  - **beforeSaveCell** (//rowid, cellname, value, iRow, iCol//) : Fires before the cell is saved, you can save the value here which is send to the server. 
-3. afterEditCell ​- after the input element is created ​\\  +  - **beforeSubmitCell** (//rowid, cellname, value, iRow, iCol//) : Fires before value will be send to the server, you can add extra parameters here to the request by returning an array 
-4. beforeSaveCell ​\\  +  - **afterSubmitCell** (//​serverresponse,​ rowid, cellname, value, iRow, iCol//) : Fires only if saving ​cell is succesful, you can return a error message here that causes a dialog with the message 
-5. beforeSubmitCell ​\\  +  **afterSaveCell** (//rowid, cellname, value, iRow, iCol//) : Fires when the value of the cell is saved 
-6. afterSaveCell ​\\  +  - **errorCell** (//​serverresponse,​ status//) : Fires when a server error is occured (like: 403, 404, 500, etc) 
-else if the cell is not editable \\  +  - **onSelectCell** (//rowid, celname, value, iRow, iCol//) : Fires when a cell is not editable 
-1. onSelectCell ​\\ + 
 +=== cellSubmit setting '​clientArray'​ === 
 + 
 +  - **formatCell** (//rowid, cellname, value, iRow, iCol//) : You can change the cell value here which will be used in the edit mode 
 +  - **beforeEditCell** (//rowid, cellname, value, iRow, iCol//) : Just before the cell jumps into edit mode this event is fired 
 +  **afterEditCell** (//rowid, cellname, value, iRow, iCol//) : Just after the input element is created ​this event will be fired 
 +  - **beforeSaveCell** (//rowid, cellname, value, iRow, iCol//) : Fires before the cell is saved by user 
 +  - **beforeSubmitCell** (//rowid, cellname, value, iRow, iCol//) : You can save the value somewhere here 
 +  - **afterSaveCell** (//rowid, cellname, value, iRow, iCol//) : Fires when the value of the cell is succesfully saved by beforeSubmitCell 
 +  - **onSelectCell** (//rowid, celname, value, iRow, iCol//) : Fires when a cell is not editable
  
 ===== Methods ===== ===== Methods =====

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