gets an object of the selected data item
as_array | boolean | if true, returns an array with selected item(s) |
object | object of the selected item with all its properties |
var item = grid.getSelectedItem();
//item = {id:1, title:"Title", year:1987}
In case of multiple item selection the method will return array of selected items anyway. If array mode ("as_array") is switched on, even one item will be put put into an array.