How to count data rows in jqgrid and prevent display if a threshold is exceeded
<p>I need to count the number of rows of data returned to JQgrid before they are displayed and if an upper limit is exceeded display a dialog to the user like "maximum number of search results exceeded.  Please refine search criteria".  Does anyone know how to do this?  One idea I have is that since I have this definition:
 jsonReader : {
    root: "rows",
    page: function(obj) { return 1; },
    total: function(obj) { return (obj.rows.length/numberOfRowsPerPage); },
    records: function(obj) { return obj.rows.length; },
    repeatitems: false,
    cell: "cell",
    id: "id",
    userdata: "userData"
 }  </p>

<p>I might be able to make use of the value in 'records' but I don't know if this is a dead end or not or how or where to get that value from.</p>
