【发布时间】:2013-01-27 12:06:34
【问题描述】:
我正在使用 Zend 框架,这就是为什么我决定使用“zfdatagrid deploy jqgrid”而不是直接使用 jqgrid。 我想要 jqgrid 和 subgrid。网格显示正常,但是当我单击展开按钮时,我会收到“正在加载”的通知,但没有任何反应。我已经调试正确调用了“subGridUrl”,因为调试器命中了我应该从 MySQL 中为 subgrid 选择数据的函数,并且我尝试传递纯 json 响应(而不是从 MySQL 中选择),但仍然没有显示 subgrid。也许我不明白必须是什么回应?我的回应:
<...>
$responce = new stdClass();
$responce->rows[0]['id']='0';
$responce->rows[0]['cell']=array('0','test1','123','1');
$responce->rows[1]['id']='1';
$responce->rows[1]['cell']=array('1','test2','321','2');
$j = json_encode($responce);
echo $j;
<...>
【问题讨论】:
标签: zend-framework jqgrid subgrid zfdatagrid