Grid Bug with Row Filter

4 posts, 1 answers
  1. Dale
    Dale avatar
    5 posts
    Member since:
    Oct 2016

    Posted 05 Oct Link to this post

    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.

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 07 Oct Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Dale
    Dale avatar
    5 posts
    Member since:
    Oct 2016

    Posted 08 Oct in reply to Pavlina Link to this post

    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.

     

  5. Answer
    Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 12 Oct Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready