GridRow
Purpose
GridRow is a client-side JavaScript object
that represents a row in a grid control on an application page.
Access a GridRow from a GridControl by
calling the method getGridRow(rowIndex), where
rowIndex is the number of the row (the first
row has the rowIndex of 0). See GridControl for more information.
Interface
The GridRow component has the following public interface:
getData()— ReturnsGridRowdata in serialized JSON formatgetField(fieldName)— Returns theFieldContextobject for the specified field in the row where the field is identified by its integration name.. See FieldContext for more information.getFieldCell(fieldName)— Returns a jQuery object of the field container element where the field is identified by its integration name.getFieldData(fieldName)— Returns field data in serialized JSON format where the field is identified by its integration name.getIndex()— Returns the row Index of thisGridRowgetRecordId()— Returns theGridRowrecord's record ID. The value is-1for newGridRowrecords.
Example
The following example returns the value of the field with the integration name
"name" for the first row of the first grid on the page .
<script>
rbf_getGridControlComponent(0).getGridRow(0).getFieldData("name");
</script>