Ext.onReady(function(){
grid1 = new Ext.ux.AutoGridPanel({
title:'Auto loading columnmodel',
renderTo: 'testgrid',
height: 400,
width: 500,
loadMask: true,
autoSave: true,
saveUrl: 'saveconfig.php',
store : new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'query.php'
}),
reader: new Ext.data.JsonReader(
{root: 'rows', id: 'id'},
['id','status','title', 'author', 'category','published']
)
})
});
// load + metadata
grid1.store.load({params: {meta: true}});
});
基于Ext2.0自动配置grid的插件
最新推荐文章于 2018-04-25 15:35:09 发布