0

我在过滤剑道网格列中的某些单列时遇到以下问题。

它是具有很多列的复杂网格。有使用默认内置过滤的过滤列选项。它适用于简单的数据 - 但问题是当我尝试过滤关键字列时。提供的数据是一个字符串数组,我不能改变它的结构。我必须照原样处理它。将整个数组更改为一个字符串的解决方案会让我满意。我已经阅读了有关自定义过滤的文档,但在那里我没有看到所需的信息:(

在此处输入图像描述

    <div class="grid-wrapper">
  <kendo-grid
    [kendoGridGroupBinding]="rawData"
    [groupable]="true"
    [group]="gridConfig.state.group"
    [kendoGridSelectBy]="selectBy"
    (selectionChange)="select($event)"
    [selectedKeys]="[selectedItem?.ElasticId]"
    [filterable]="'menu'"
    [filter]="gridConfig.state.filter"
    [sortable]="sortable"
    [sort]="sort"
    (sortChange)="sortChange($event)"
    [skip]="gridConfig.state.skip"
    [style.height.%]="100"
    [pageSize]="36"
    (pageChange)="pageChange($event)"
    (dataStateChange)="stateChange($event)"
    scrollable="virtual"
    [rowHeight]="36"
    [resizable]="true"
    [reorderable]="true"
    (columnVisibilityChange)="columnChange(grid)"
    (columnResize)="columnChange(grid)"
    (cellClick)="cellClick($event)"
    #grid>
    <ng-template kendoGridToolbarTemplate position="top" class="full-width fxrow">
      <y-bar
        [data]="gridView"
        (gridFilterEmitter)="gridFilter($event)"
        (orientationEmitter)="changeOrientation($event)"
        (excelEmitter)="saveToExcel()"
        (groupsExpandedEmitter)="expandGroups($event)"
        class="full-width"></y-bar>
    </ng-template>

   
    <kendo-grid-column
      [includeInChooser]="true"
      [hidden]="setColumnVisibility('Keywords')"
      [width]="setColumnWidth('Keywords')"
      field="Keywords"
      title="Keywords">
    </kendo-grid-column>
    <kendo-grid-column
      [includeInChooser]="true"
      [hidden]="setColumnVisibility('SystemUserName')"
      [width]="setColumnWidth('SystemUserName')"
      field="SystemUserName"
      title="System User Name">
    </kendo-grid-column>
    <kendo-grid-column
      [includeInChooser]="true"
      [hidden]="setColumnVisibility('DnsName')"
      [width]="setColumnWidth('DnsName')"
      field="DnsName"
      title="Dns">
    </kendo-grid-column>
    <kendo-grid-column
      [includeInChooser]="true"
      [width]="setColumnWidth('AdditionalInfo')"
      [hidden]="setColumnVisibility('AdditionalInfo')"
      field="AdditionalInfo"
      title="Additional Info">
    </kendo-grid-column>
    <kendo-grid-column
      [includeInChooser]="true"
      [hidden]="setColumnVisibility('ElasticId')"
      [width]="setColumnWidth('ElasticId')"
      field="ElasticId"
      title="Elastic Id">
    </kendo-grid-column>
 

    <kendo-grid-excel fileName="LonginusLogFile.xlsx" [fetchData]="allData"></kendo-grid-excel>
  </kendo-grid>
  <time-selection-context-menu #contextMenu></time-selection-context-menu>
</div>
4

0 回答 0