getSelectedItem
gets an object of the selected data item
function getSelectedItem( // if true, returns an array with selected item(s) as_array?: boolean): object
Returns
Section titled “Returns”object
the object of the selected item with all its properties
Example
Section titled “Example”var item = grid.getSelectedItem();//item = {id:1, title:"Title", year:1987}
Details
Section titled “Details”If several items are selected, the method will return an array of selected items anyway. If the array mode (“as_array”) is switched on, the method will return an array with one item.
See also
Section titled “See also”Articles
API