selectRowById

selects row by ID

void selectRowById(string|number row_id,boolean preserve,boolean show,boolean call);

Parameters

row_idstring|numberrow id
preservebooleanpreserve previously selected (optional, false by default). Multi select mode should be enabled.
showbooleanscroll row to view (optional, true by default)
callbooleanif true, call the onRowSelect function (optional, false by default)

Example

// minimal parameters' set
mygrid.selectRowById('row1');
// maximal parameters' set
mygrid.selectRowById('row1',true,true,true);

Back to top