TreeListSearchSettingsBuilder

Methods

Field(System.Linq.Expressions.Expression)

Defines the fields for filtering with the Search Toolbar.

Parameters

expression - System.Linq.Expressions.Expression<Func>

An expression returning the fields that will be filtered.

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
            	    .Toolbar(toolbar => toolbar.Search())
            		.Search(s =>
                    {
                    	s.Field(o => o.LastName);
                     	s.Field(o => o.Position);
                    })
            	)
             

Field(System.String)

Defines the field for filtering with the Search Toolbar.

Parameters

memberName - System.String

The field that will be filtered.

Example

Razor
 
            	@(Html.Kendo().TreeList<UserViewModel>()
            	    .Name("treelist")
               		.Toolbar(toolbar => toolbar.Search())
            	    .Search(s =>s.Field("LastName"))
            	)