<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        ExtJs中gridpanel分組后組名排序實例代碼_javascript技巧

        來源:懂視網 責編:小采 時間:2020-11-27 21:16:45
        文檔

        ExtJs中gridpanel分組后組名排序實例代碼_javascript技巧

        ExtJs中gridpanel分組后組名排序實例代碼_javascript技巧: 代碼如下:/** * 定義降序的groupingStore */var DescGroupingStore = Ext.extend(Ext.data.GroupingStore, { groupDir : 'ASC', groupBy : function(field, forceRegroup, direction) { direct
        推薦度:
        導讀ExtJs中gridpanel分組后組名排序實例代碼_javascript技巧: 代碼如下:/** * 定義降序的groupingStore */var DescGroupingStore = Ext.extend(Ext.data.GroupingStore, { groupDir : 'ASC', groupBy : function(field, forceRegroup, direction) { direct

        代碼如下:
        /**
        * 定義降序的groupingStore
        */
        var DescGroupingStore = Ext.extend(Ext.data.GroupingStore, {
        groupDir : 'ASC',
        groupBy : function(field, forceRegroup, direction) {
        direction = direction ? (String(direction)
        .toUpperCase() == 'DESC' ? 'DESC' : 'ASC')
        : this.groupDir;
        if (this.groupField == field
        this.groupDir == direction && !forceRegroup) {
        return;
        }
        this.groupField = field;
        this.groupDir = direction;
        if (this.remoteGroup) {
        if (!this.baseParams) {
        this.baseParams = {};
        }
        this.baseParams['groupBy'] = field;
        this.baseParams['groupDir'] = direction;
        }
        if (this.groupOnSort) {
        this.sort(field, direction);
        return;
        }
        if (this.remoteGroup) {
        this.reload();
        } else {
        var si = this.sortInfo || {};
        if (si.field != field || si.direction != direction) {
        this.applySort();
        } else {
        this.sortData(field, direction);
        }
        this.fireEvent('datachanged', this);
        }
        },
        applySort : function() {
        Ext.data.GroupingStore.superclass.applySort.call(this);
        if (!this.groupOnSort && !this.remoteGroup) {
        if (this.groupField != this.sortInfo.field
        || this.groupDir != this.sortInfo.direction) {
        this.sortData(this.groupField, this.groupDir);
        }
        }
        },
        applyGrouping : function(alwaysFireChange) {
        if (this.groupField !== false) {
        this.groupBy(this.groupField, true, this.groupDir);
        return true;
        } else {
        if (alwaysFireChange === true) {
        this.fireEvent('datachanged', this);
        }
        return false;
        }
        }
        });

        代碼如下:
        /*************************調用***************************/
        // 消息列表數據源
        var messageStore = new DescGroupingStore({
        proxy : new Ext.data.HttpProxy({
        url : "listMessGrid.action"
        }),
        reader : myReader,
        groupDir : 'DESC',
        groupField : 'status',
        sortInfo : {
        field : 'id',
        direction : "DESC"
        }
        });
        messageStore.load();

        代碼如下:
        /*****************在gridpanel中添加如下屬性*************************************/
        view : new Ext.grid.GroupingView({
        showGroupName : false,
        groupTextTpl : '{gvalue}:{text} ({[values.rs.length]} {[values.rs.length > 1 ? "封" : "封"]})',
        showGroupsText : "ddd"
        })

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        ExtJs中gridpanel分組后組名排序實例代碼_javascript技巧

        ExtJs中gridpanel分組后組名排序實例代碼_javascript技巧: 代碼如下:/** * 定義降序的groupingStore */var DescGroupingStore = Ext.extend(Ext.data.GroupingStore, { groupDir : 'ASC', groupBy : function(field, forceRegroup, direction) { direct
        推薦度:
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 亚洲13又紧又嫩又水多| 亚洲精品亚洲人成在线观看麻豆| 成人奭片免费观看| 嫩草影院免费观看| 国产一卡二卡3卡四卡免费| 国产成人3p视频免费观看| 免费一级毛片不卡不收费| 国产成人一区二区三区视频免费 | 国产亚洲精品自在久久| 亚洲黄色在线观看网站| 亚洲精品欧美综合四区| 永久免费AV无码网站国产| 我想看一级毛片免费的| 伊人久久综在合线亚洲91| 亚洲精品中文字幕乱码影院| 精品一区二区三区免费毛片爱 | 老司机亚洲精品影视www| 久久亚洲日韩看片无码| **毛片免费观看久久精品| 亚洲精品无码久久久| 亚洲粉嫩美白在线| 日韩免费观看一区| 亚洲人成网站18禁止久久影院| 久久久久国色AV免费观看| 男人的好看免费观看在线视频| 亚洲人成电影网站色| **俄罗斯毛片免费| 亚洲国产精品18久久久久久| 亚洲欧洲精品成人久久曰影片| 青青操在线免费观看| 亚洲国产天堂久久综合| 美女视频黄a视频全免费网站色窝| 四虎永久免费地址在线网站| 久久久久se色偷偷亚洲精品av| 女人张开腿给人桶免费视频| yellow视频免费看| 国产精品无码一区二区三区免费 | 精品免费国产一区二区三区| 亚洲AV无码乱码麻豆精品国产| 国产精品免费看久久久久| 永久免费不卡在线观看黄网站|