Skip to content

getSelectedItem

gets an object of the selected data item

function getSelectedItem(
// if true, returns an array with selected item(s)
as_array?: boolean
): object

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.

Articles

API