所以我有这样的网格。 这是一个非常漂亮的网格。 可爱的,真的。 除了当我什么都没有跟来填充它。 在这种情况下,我真的很想显示一条消息,指出,“没有网址已加载的评价。”,但无论是我想的东西的关键或者emptyrecords
选项没有表现我所希望的方式。 有人能指出我朝着正确的方向吗?
var pages = <?php echo $json_encoded_array ?>;
$('#oversight-sample').jqGrid({
altRows: true,
autowidth: true,
caption: 'Evaluated URLs',
colNames: ['Actions', 'URL', 'Fetch Date'],
colModel: [
{ align: 'center', name: 'actions', index: 'actions', title: false, width: 60, resizable: false, sortable: false },
{ name: 'url', index: 'url', width: 400 },
{ align: 'center', name: 'created', index: 'created', width: 125, sorttype: 'date' }
],
data: pages,
datatype: 'local',
emptyrecords: 'No URLs have been loaded for evaluation.',
forceFit: true,
height: 'auto',
hoverrows: true,
sortname: 'created',
pager: '#url-pager',
viewrecords: true
});
如果不存在的记录,那么一切看起来像左右我希望它看起来。 有没有别的东西,我需要做的,以获得emptyrecords
消息时,有没有显示?
我使用的jqGrid 3.8。
谢谢。