Telerik UI for ASP。网络核心?下载30天免费试用

StringOperatorsBuilder

定义用于配置Filter菜单的连贯接口StringOperators它的选择。

方法

Clear ()

清除选项。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . clear () . isequalto ("Equal to") . isnotequalto ("Not Equal to")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read (read => read。Action("Orders_Read", "Grid"))))

IsEqualTo system . string) (

设置IsEqualTo操作符筛选菜单项的文本。

参数

消息,系统。字符串

“相等”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isequalto ("Equal to")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

IsNotEqualTo system . string) (

设置IsNotEqualTo操作符筛选菜单项的文本。

参数

消息,系统。字符串

“不等于”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isnotequalto ("Not equal to")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

system . string) StartsWith (

设置startwith操作符筛选菜单项的文本。

参数

消息,系统。字符串

“start with”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . startswith (" begin with")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read (read => read. forstring)Action("Orders_Read", "Grid"))))

EndsWith system . string) (

设置EndsWith操作符筛选菜单项的文本。

参数

消息,系统。字符串

“以”结尾的筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . endswith ("Ends with")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

包含system . string) (

设置“包含操作符筛选器”菜单项的文本。

参数

消息,系统。字符串

“contains”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str .Contains("Contains")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

DoesNotContain system . string) (

设置DoesNotContain操作符筛选菜单项的文本。

参数

消息,系统。字符串

“不包含”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . doesnotcontain("不包含")))). dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

IsNull system . string) (

设置IsNull操作符筛选菜单项的文本。

参数

消息,系统。字符串

“isnull”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isnull ("Is null")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

IsNotNull system . string) (

设置IsNotNull操作符筛选菜单项的文本。

参数

消息,系统。字符串

“isnotnull”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isnotnull ("Is not null")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

system . string) IsEmpty (

设置IsEmpty操作符筛选菜单项的文本。

参数

消息,系统。字符串

“isempty”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isempty ("Is empty")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

IsNotEmpty system . string) (

设置IsNotEmpty操作符筛选菜单项的文本。

参数

消息,系统。字符串

“isnotempty”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isnotempty ("Is not empty")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

IsNullOrEmpty system . string) (

设置IsNullOrEmpty操作符筛选菜单项的文本。

参数

消息,系统。字符串

“isnulloempty”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isnullorempty ("Is null or empty")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read(读=>读。Action("Orders_Read", "Grid"))))

IsNotNullOrEmpty system . string) (

设置isnottnullorempty操作符筛选菜单项的文本。

参数

消息,系统。字符串

“isnotnulloremtpy”筛选操作符的文本。

例子

@(Html.Kendo(). grid () . name ("grid") . columns (columns => {columns. grid . name ("grid") . columns)。Bound(p => p.OrderID).Filterable(false);列。绑定(p => p. freight);}) . filterable (filterable => filterable . extra (false) . operators (operators => operators . forstring (str => str . isnotnullorempty ("Is not null or empty")))) . dataSource (dataSource => dataSource . ajax () . pagesize (20) . read (read => read。Action("Orders_Read", "Grid"))))
在本文中
找不到你需要的帮助?
Baidu
map