Events
afterDelete:function(record) Fired before: Changed data is to be posted to server side.
record: Object or Array. Record of the row added/appended by end user.
returns: Bool. Return false to prevent row from being posted to server side.
afterInsert:function(record) Fired before: Changed data is to be posted to server side.
record: Object or Array. Record of the row added/appended by end user.
returns: Bool. Return false to prevent row from being posted to server side.
afterSave(respD,isSuccess,grid)Fired after: Data to save sent to server side then back to client side.
respD: String. Message sent from server side to client.
isSuccess: Bool. Value to indecate whether side side script is successfully executed or not.
grid: Grid object. This grid.
afterSelectRow:function(value, record , cell, row, colNO, rowNO, columnObj,grid)Called before: End user selects one row.
value: Value of the cell where mouse pointer is at.
record: Object or array. Data record of the row to be selected.
cell: Dom of the cell where mouse pointer is at.
row: Dom of row to be selected.
colNo: Index of the column where mouse pointer is at.
columnObj: Column object.
grid: Grid object.
returns: Boolean. Return false to prevent row from being selected.
afterUpdate:function(record,fieldName,newValue)Fired before: Changed data is to be posted to server side.
record: Object or Array. Record of the row modified by end user.
fieldName: String. Id of column changed.
newValue: New value.
returns: Bool. Return false to prevent row from being posted to server side.
beforeDelete:function(record) Fired before: Changed data is to be posted to server side.
record: Object or Array. Record of the row added/appended by end user.
returns: Bool. Return false to prevent row from being posted to server side.
beforeInsert:function(record) Fired before: Changed data is to be posted to server side.
record: Object or Array. Record of the row added/appended by end user.
returns: Bool. Return false to prevent row from being posted to server side.
beforeSelectRow:function(record ,row, rowNo,grid)Called before: End user selects one row.
record: Object or array. Data record of the row to be selected.
row: Dom of row to be selected.
rowNo: Index of the row where mouse pointer is at. Base on 0.
grid: Grid object.
returns: Boolean. Return false to prevent row from being selected.
beforeUpdate:function(record,fieldName,newValue)Fired before: Changed data is to be posted to server side.
record: Object or Array. Record of the row modified by end user.
fieldName: String. Id of column changed.
newValue: New value.
returns: Bool. Return false to prevent row from being posted to server side.
loadFailure:function(repObject)Fired when failing to load data from server.
repObject.exception : String. Exception string.
repObject.success : Bool. Value indicating whether server side script is executed successfully or not.
text: String. Raw text from server side to client.
onClickCell:function(value, record , cell, row, colNO, rowNO,columnObj,grid)Called when: End user click one cell.
value: Value of the cell where mouse pointer is at.
record: Object or array. Data record of the row where the cell is at.
cell: Dom of the cell.
row: Dom of row where the cell is at.
colNo: Index of the column where the cell is at.
columnObj: Column object.
grid: Grid object.
returns: Boolean. Return false to prevent cell from being active.
onDblClickCell:function(value, record , cell, row, colNO, rowNO,columnObj,grid)Called when: End user double click one cell.
value: Value of the cell where mouse pointer is at.
record: Object or array. Data record of the row where the cell is at.
cell: Dom of the cell.
row: Dom of row where the cell is at.
colNo: Index of the column where the cell is at.
columnObj: Column object.
grid: Grid object.
returns: Boolean. Return false to prevent cell from being active.
saveFailure:function(repObject)Fired when failing to save data to server.
repObject.exception : String. Exception string.
repObject.success : Bool. Value indicating whether server side script is executed successfully or not.
text: String. Raw text from server side to client.