This is a migrated thread and some comments may be shown as answers.

Grid Bug with Row Filter

3 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dale
Top achievements
Rank 1
Iron
Dale asked on 06 Oct 2016, 04:08 AM

In the current edition, a bug has been introduced

When doing a row level filter and you us contains, typing something in where what you type is contained in a string will say no data found

You can see the bug here in the demo

http://demos.telerik.com/aspnet-mvc/grid/filter-row

in the ship name, type carnes, it shows no data found, hit enter and it will show you the records with carnes, 14 rows.

I would like to know if the drop down box that shows no records can be removed or fixed.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 07 Oct 2016, 03:13 PM
Hello,

As far as I understand you are trying to display second filter criteria in the filter row drop down. If this is so you can try setting filterable.extra to true. This way the filter menu allows the user to input a second criterion. More information is available here:
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-filterable.extra

Regards,
Pavlina
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dale
Top achievements
Rank 1
Iron
answered on 08 Oct 2016, 10:58 AM

No,

That's not what I posted, searching for something that is contained, displays no data available, you can try in your own demo as per my post

in ship name type 'carnes' it will say no data found, which is not correct.

 

0
Accepted
Pavlina
Telerik team
answered on 12 Oct 2016, 07:27 AM
Hi,

The behavior you pointed is not a bug. Note that the request populating the Grid widget is filtered with contains operator. The other requests are for the AutoComplete widget, which is shown in the filter row. By default it will filter using 'startswith' operator therefore when you type "carnes" no data is found in the autocomplete . In order to change this behavior, you should set  the SuggestionOperator option also to contains as shown below:
columns.Bound(p => p.ShipName).Width(500).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains").SuggestionOperator(FilterType.Contains)));

Regards,
Pavlina
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Dale
Top achievements
Rank 1
Iron
Answers by
Pavlina
Telerik team
Dale
Top achievements
Rank 1
Iron
Share this question
or