I am trying to generate a grid using jqgrid on a html table. I am able to do that, but I want to display a message if no rows are found in the table. How can I do that?
Here is my jquery code...
jQuery.extend(jQuery.jgrid.defaults, {
caption: "my list",
autowidth: true,
height: "100%",
hidegrid: false,
loadComplete: function() {
alert("Grid has been loaded");
},
colModel:[
{ name: 'date', index: 'date', width: 0, resizable: false },
{ name: 'icon', index: 'icon', width: 0, resizable: false },
{ name: 'shop', index: 'shop', width: 0, resizable: false },
{ name: 'delete', index: 'delete', width: 0, resizable: false }
]
});
tableToGrid("#item_table", {
colNames: ['Date', '', 'Shop', 'Delete']
});