Angular Kendo 网格字段名称给出警告 "Grid Field name is not a valid identifier"

Angular Kendo Grid Field Name gives a warning "Grid Field name is not a valid identifier"

这是我收到的确切警告

Grid column field name 'Access Request Privilege' does not look like a valid JavaScript identifier.
                Identifiers can contain only alphanumeric characters (including "$" or "_"), and may not start with a digit.
                Please use only valid identifier names to ensure error-free operation.

这是我为 kendo 网格编写的动态获取名称的代码

<kendo-grid-column field="{{gridColumn2}}" title="Access Request Privilege" width="110">
        <ng-template kendoGridCellTemplate let-dataItem>
          <div [innerHTML]="dataItem.AccessPrivilegeName"></div>
        </ng-template>
  </kendo-grid-column>

我们如何处理这些警告?

所以我注意到这段代码中的错误是我应该写标题而不是字段而不是标题我应该写名字。

下面是我的有效解决方案,控制台中没有任何警告。

 <kendo-grid-column title="{{gridColumn2}}" name="Access Request Privilege" width="110">
           <ng-template kendoGridCellTemplate let-dataItem>
               <div [innerHTML]="dataItem.AccessPrivilegeName"></div>
           </ng-template>
    </kendo-grid-column>