Get the row count of JQX Grid JQwidget

Get the row count of JQX Grid JQwidget.
  1. var dataCount = $('#jqxgrid').jqxGrid('getrows');  
  2. var len=dataCount.length; 
I hope someone finds it is useful.