Paste tab-delimited text into the grid.
parseField(obj, field)
obj |
object, Java Script object |
field |
string, field to parse |
Returns value (can be any JS type).
Description
It is quite often that the records array contains objects with complex structure. For example a record object can be:
However, when you define
.columns or
.searches for the grid, you need to define field as a string.
The grid will internally call
.parseField method to parse data structure
and resolve the field value.
This method can be used to parse any object that you supply, not necessarily the record object. For the example above, you can parse
fields in the following way (assuming there is grid with name grid):