如果列为下拉选择,如何在Kendo网格中应用过滤器

时间:2018-11-01 17:24:20

标签: angular kendo-grid

> Please see below code for using drop down, please help me how i can apply filter on it.I am also attaching screen shot of gui and code: 

请参阅以下使用下拉菜单的代码,请帮助我如何在其上应用过滤器。我还附上gui和代码的屏幕截图:

 <kendo-grid-column field="UtilFunction" title="{{LblRecordFunctionName}}" [width]="recordFunctionNameHeaderWidth" filter="text">
                        <ng-template kendoGridCellTemplate let-dataItem>
                            {{recordValidationFiledUtilfunction(dataItem.UtilFunction)?.FunctionName}}
                        </ng-template>
                        <ng-template kendoGridEditTemplate
                                     let-dataItem="dataItem"
                                     let-formGroup="formGroup"
                                     let-rowIndex="rowIndex">
                            <select class="form-control" (change)="onChangeUtilFunction($event)" id="recordFunctionName">
                                <option value="0" disabled selected>Select</option>
                                <option *ngFor="let itemvalue of recordUtilFunctions" value={{itemvalue.FunctionID}} [selected]="itemvalue.FunctionID === selectFunctionName">
                                    {{itemvalue.FunctionName}}
                                </option>
                            </select>
                            <!--<img [src]="glyphiconsMore" (click)="customUtlFunction(dataItem,recordValidationKendoGridID,formGroup,rowIndex)" />-->
                        </ng-template>
                    </kendo-grid-column>

GUI looks like as, please see screen shot here

0 个答案:

没有答案