getSelectedItem

gets an object of the selected data item

object getSelectedItem( [boolean as_array] );

Parameters

as_arraybooleanif true, returns an array with selected item(s)

Returns

objectobject of the selected item with all its properties

Example

var item = grid.getSelectedItem();
//item =  {id:1, title:"Title", year:1987}

Details

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.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of web datagrid product.