gets an object of the selected data item
| as_array |
| object | the object of the selected item with all its properties |
var item = grid.getSelectedItem();
//item = {id:1, title:"Title", year:1987}
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.