从服务器检索数据后,不会渲染jqGrid
|
从服务器检索数据后,无法在jqGrid中显示数据。
jqGrid显示“正在加载”消息,但是在完成加载后不显示数据。
$(\"#list27\").jqGrid({
url: \'/server/getdata.do?name=afonso\',
datatype: \"json\",
height: 355,
width: 750,
colNames:[\'Email\',\'Name\', \'Empno\', \'Notes\'],
colModel:[
{name:\'email\', width:200},
{name:\'name\', width:200},
{name:\'empno\', width:100},
{name:\'notes\', width:250}
],
viewrecords: true,
sortorder: \"asc\",
caption: \"Loading data from server at once\"
});
没有找到相关结果
已邀请:
1 个回复
缔恃钨
确保它实际上是 返回正确的数据。