树网格保存状态

时间:2020-10-21 07:32:22

标签: extjs extwebcomponents

我正在使用extwebcomponents的Tree网格并提供有状态:['width','height','collapsed'],但我的treegrid状态仍然无法持久。

我正在使用treestore,在这里我进行ajax调用以获取数据。我在浏览器上使用了build(main.js),并在其上运行了本地javascript。是否缺少某些内容?

Ext.create({
fullscreen: true,
xtype: 'panel',
title :  'Title',
id:"treepanel",
renderTo: 'sencha_div',

items: [{
xtype: 'tree',
id: 'treelit',
stateful: ['width','height','collapsed'],
plugins: {treedragdrop:true,gridcellediting:true,gridfilters:true},
columns: columns,
height: 800, width: 1700,
scrollable: true,
store:store,columnLines:"true"}]
});

致谢

Nidhi

0 个答案:

没有答案