I\'m having a heck of a time trying to only display my jqGrid when records are returned from my webservice. I don\'t want it to be collapsed to where you only see the capti
just a little twist on seth's solution:
you can use in place of var recs = $('#list').jqGrid('getGridParam','records');
var recs = $('#list').jqGrid('getGridParam','reccount');
jqGrid grid option 'records' default value = 'None'
jqGrid grid option 'reccount' defaults to 0 and will always return a number even when there are no records (returns 0)
see wiki:options @ jqGrid Wiki
If you don't want to use a wrapping div you can hide the whole jqGrid using
$('.ui-jqgrid').hide()
or $('.ui-jqgrid').show()
.
The ui-jqgrid class is only used for the jqGrid parent.