Ext中PropertyGrid后台取值问题
Ext中用PropertyGrid来完成显示系统信息,比如版本,硬件信息等功能再好不过,但是关于PropertyGrid控件给的例子有很多都是写死在前端代码里的,比如
Ext.Ajax.request({ url:'systemInfo!list.action', success:function(response){ var result = Ext.decode(response.responseText); if(result.success){ var json = result.data; Ext.getCmp("propGrid").setSource(json); }else { alert('fail!'); } }, failure:function(){ alert("networkfailure"); } }); var propsGrid = new Ext.grid.PropertyGrid({ id: 'propGrid', width: 462, autoHeight: true });