我无法在extjs中订购tree.panel

时间:2014-01-17 08:42:17

标签: sorting extjs tree

    var storeTree = Ext.create('Ext.data.TreeStore', {
        proxy: {
            type: 'ajax'
        },
        root: {
            text: "Viviendas",
            id: 'root',
            expanded: true,
            children: []
        },
        sortOnLoad: true,
        sorters: [{
            property: 'text',
            direction: 'ASC'
        }],
        folderSort: true
     });

var treeVivi = Ext.create('Ext.tree.Panel', {
    id: 'idTreeViviEdif',
    title : "Impresión",
    store : storeTree,
    rootVisible: false, 
    useArrows: true,
    folderSort: true,
    draggable: false,
    scroll: true
});

我在飞行中创建了一个tree.panel,我已经尝试了一切来排序tree.panel,但我不能,我可以帮助某人订购?

问候和感谢....

0 个答案:

没有答案