getItem

gets the object of the data item with the specified id

object getItem(id id);

Parameters

ididthe item id

Returns

objectthe object of a data item

Example

// the 'record' variable will contain an object of the related DataTable row 
var record = grid.getItem("rowId");
 
// you can access data members directly
var title = record.title;

See also
Back to top