here is a better option for get the rowscount var datainformations = $(‘#loterias’).jqxGrid(‘getdatainformation’); var rowscounts = datainformations.rowscount;