0

関数から EnhancedGrid フィルター プラグインを呼び出す必要がありますが、EnhancedGrid では、フィルターを操作するためにフィルター プラグインを宣言する必要があります。

    grid = new EnhancedGrid({
        id : 'grid',
        store : yourStore,
        structure : layout,
        rowSelector : '20px',
        plugins : {
        search : true,
        pagination : {
            pageSizes : [ "50", "100"],
            description : true,
            sizeSwitch : true,
            pageStepper : true,
            gotoButton : true,
            maxPageStep : 2,
            position : "bottom"
        },
        filter : {
            closeFilterbarButton : true,
            ruleCount : 2              
            itemsName : "rows"          
        }
    }
});

    grid.placeAt("myGrid");
    grid.startup();

}
});

どうすればこれを達成できますか?

4

1 に答える 1

0

次の方法で実行できます。

<div data-dojo-type="dijit.form.Button">
filter movies with the letter "T" at the beginn
<script type="dojo/method" data-dojo-event="onClick" data-dojo-args="evt">
    // Filter the movies from the data store:
    grid3.filter({Title: "T*"});
</script>

これは道場の例からのスニペットです: https://dojotoolkit.org/reference-guide/1.9/dojox/grid/example_Filtering_data.html

よろしく

于 2013-09-27T09:09:21.883 に答える