如何按照剑道网格中的图像列进行过滤?

时间:2014-07-29 16:51:57

标签: kendo-ui kendo-grid

我有一个可能有图像的列,否则它是null。

如何添加过滤器,以便只显示带图像的行?

我的专栏定义为

case 'image':
column.type = "string";
column.template = ' #if(' + key + ') { # <a class="thumbnail" ><img src="#=' + key + '#" ng-click="vm.imageClicked(\'#=' + key + '#\' )" >   </a> #}#';
column.filterable = {
    cell: {
        enabled: false
    }
}
break;

感谢。

1 个答案:

答案 0 :(得分:0)

截至Kendo版本2014.2.716,无法按null进行过滤,因此我提出的最佳选择是计算布尔值。

以下是代码。

http://dojo.telerik.com/@Xavier/ihUj