红鱼儿

默认让uniDBTreeGrid按指定字段排序显示

在官方forums中找到这个,准备试一下:

http://forums.unigui.com/index.php?/topic/11439-how-do-i-sort-by-the-order-column-in-the-unidbtreegrid/

测试结果,真按指定列排序了,但是,应该不支持中文的关系,排序不对。

 

上图中的JS代码:

function store.load(sender, records, successful, operation, eOpts)
{
    var me=sender;
    me.remoteSort=false;
    me.sort({property:0, direction:"ASC"});
    me.grid.getSelectionModel().select(0);   //选择第一行
}

 

posted on 2021-11-21 22:32  红鱼儿  阅读(231)  评论(0编辑  收藏  举报