如何过滤wijmo flex网格值

时间:2015-05-13 09:38:43

标签: wijmo

水果

苹果

香蕉

番茄(Tomatoes)

我有一个加载以上信息的弹性网格

<wj-flex-grid   items-source="Module.Fruits " child-items-path="children" selection-mode="Row" allow-Sorting="false" is-read-only="true">

我如何过滤水果专栏以省略某些我不想要的水果,例如选择框,这就是我要做的事情

 <select  ng-model="Model.Fruits" ng-options="fruit.FruitID as fruit.fruitName for fruit in Model.Fruits  | filter:{fruitName :'!pear'} | filter:{fruitName :'!apple'}>
                <option value=""></option>
            </select> 

以上将省略我指定的值。现在我不确定如何使用flexgrid

1 个答案:

答案 0 :(得分:0)

您可以在CollectionView上应用相同的过滤器,然后将其绑定到FlexGrid。这是代码:

$scope.cv.filter = function (item) {
         return item.name != "Washington";
     };

你也可以检查一下这个小提琴:http://jsfiddle.net/Lrdt7xv8/1/

相关问题