getSelectedRows() or getSelectedRowCount()?

Hi all,

isn’t there any function to determine how many rows are selected by user?

Regards, Carsten

You can use getSelectedRowId() method. This method returns id of selected row (list of ids with default delimiter) or null if non row selected

something like this:-

function getSelectedRowCount(mygrid)
{
var data=mygrid.getSelectedRowId();
if(data==null) return 0;
var user_list_array=data.split(’,’);
return user_list_array.length;
}