TIWCGJQGridOptions.AddRowData(Variant,ISuperObject,Variant,TIWCGJQGridOptionRowDataPosition) Method

Inserts a new row with id = rowid containing the data in data (an object) at the position specified (first in the table, last in the table or before or after the row specified in srcrowid). The syntax of the data object is: {name1:value1,name2: value2…} where name is the name of the column as described in the colModel and the value is the value. This method can insert multiple rows at once. In this case the data parameter should be array defined as [{name1:value1,name2: value2…}, {name1:value1,name2: value2…} ] and the first option rowid should contain the name from data object which should act as id of the row. It is not necessary that the name of the rowid in this case should be a part from colModel.

Namespace: IWCGJQGrid
public
 procedure AddRowData(const ARowId: Variant; AData: ISuperObject; ASrcRowId: Variant; APosition: TIWCGJQGridOptionRowDataPosition = rdpLast);

Parameters

ARowId
Type: Variant

AData
Type: ISuperObject

ASrcRowId
Type: Variant

APosition
Type: TIWCGJQGridOptionRowDataPosition