I m using mygrid.getSelectedId(); to get selected rows.
But i want only those row which are not locked.
There is no API method to check “locked” status of row.
You can try the next code, but it may be not reliable in complex scenarious
var isLocked = grid.getRowById(id)._locked