javascript Kendo Grid默认过滤器操作员
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Kendo Grid默认过滤器操作员相关的知识,希望对你有一定的参考价值。
//Fokus bagian columns >> field >> filterable
$("#orderStockGrid").kendoGrid({
dataSource: dataSource,
groupable: gridGroupable,
selectable: "multiple",
change: onOrderStockGridSelectChange,
pageable: {
pageSize: gridPageSize,
pageSizes: gridPageSizes,
input: gridPageInput,
refresh: gridRefresh
},
sortable: {
mode: "single",
allowUnsort: false
},
filterable: true,
scrollable: false,
columns: [
{ field: "CreatedOnUTC", title: gridTitleCreatedOn, template: "#= formatDateTime(CreatedOnUTC) #", width: 100 },
{ field: "OrderStockCode", title: gridTitleOrderStockCode, width: 100 },
{ field: "DestinationCentreName", title: gridTitleDestinationCentreName, width: 100 },
{ field: "ProcessingInventoryName", title: gridTitleProcessingInventoryName, width: 100 },
{
field: "SupplierName", title: gridTitleSupplierName, filterable: {
operators: {
string: {
contains: "Contains",
startswith: "Starts With"
}
}
}
},
{ field: "TotalAmount", title: gridTitleTotalAmount, template: "#= formatKendoDecimal(TotalAmount) #" },
{ field: "PaymentTypeName", title: gridTitlePaymentType },
{ field: "PaymentDueOn", title: gridTitlePaymentDueOn, template: "#= formatDate(PaymentDueOn) #" },
{ field: "PaidOn", title: gridTitlePaidOn, template: '#= formatDate(PaidOn) #' },
{ field: "ReferenceCode", title: gridTitleOrderStockReferenceCode },
{ field: "IsDraft", title: gridTitleDraft, template: '<input type="checkbox" #= IsDraft ? checked="checked" : "" # disabled="disabled" ></input>' },
{ field: "CreatedByUserName", title: gridTitleCreatedByUser },
{ field: "LastModifiedByUserName", title: gridTitleLastModifiedByUser },
{ field: "ID", title: " ", sortable: false, filterable: false, template: '<a href="#=orderStockDetailUrl#/#=ID#">#=detailText#</a>' }
]
});
以上是关于javascript Kendo Grid默认过滤器操作员的主要内容,如果未能解决你的问题,请参考以下文章
如何更改 kendo ui grid mvc 中的默认过滤器运算符
kendo grid过滤
如何“使用具有一些默认选择的多复选框过滤器在服务器端过滤 Kendo Grid 数据”
Kendo UI 默认网格过滤器值
如何强制 Kendo Grid 在列上使用数字过滤器
Kendo Grid - 过滤行作为 kendoDropDown