一个树下的子节点,按照中文排序怎么写,用extjs,我新接触的extjs,请教大神可以教教我,data.store,可以sorters排序,treestore怎么用啊
什么版本的ext?ext4+ treestore有sorters 配置后缀sort方法
是ext4.1 你说的是sorters.sort这么写吗?因为我是第一次接触ext所以不是很熟悉 麻烦写个例子代码 谢谢
//资产树数据源
tree: Ext.create('Ext.data.TreeStore', {
model:'Asset',
renderTo:Ext.getBody(),
autoLoad: true,
folderSort:true,
columns:[{xtype:'id',}],
proxy: {
type: 'ajax',
timeout: 120000,//设置连接超时
url: '../system/asset!tree.action',
reader: {
type: 'json',
root: 'items',
totalProperty: 'total'
}
},
sorters:[{
property:'text',
direction:'ASC'
}]
}),
我是这么写的,我想按照名称排序,名字一样的在一起,可没变化