I am trying to create a grid using jqgrid in an html table. I can do this, but want to display a message if no rows are found in the table. How can i do this?
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']
});
source
share