Grid column filter search on Kendo Grid column header.

4 posts, 0 answers
  1. sri
    sri avatar
    3 posts
    Member since:
    Jul 2012

    Posted 02 Sep Link to this post

    To whom so ever it may concern,

    I have a kendo grid and I have a filter on the column header like the one shown in the attached screen shot.

    When ever the page loads, the grid populates with data. After the page loads successfully with the grid and the data, When I am trying to type some characters in column header filter to search, for each character I type, its going to server call (I mean its calling controller action method every time). I don't want this round trip to server happen for every character i provide in search filter. Is there any way to not call server as data is already in the grid and when I type any character in filter box, it just filters using the grid data rather than doing round trip.

    This is what I have used in the grid.

                .Filterable(ftb => ftb.Mode(GridFilterMode.Row))
                .Filterable()
                //.Sortable()
                .Resizable(rsb => rsb.Columns(true))
                //.ColumnMenu(c=>c.Sortable(false).Filterable(true))
                //.Reorderable(r => r.Columns(true))
                .DataSource(dataSource => dataSource
                .Ajax()
                .Read(read => read.Action("GetAllSiteReleases", "Dashboard").Data("SetFilter"))
                .ServerOperation(false)

    Can I get any help on this.

     

     

  2. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 06 Sep Link to this post

    Hello Sri,

    You can try the approaches provided in the following thread to achieve this requirement:
    http://www.telerik.com/forums/turn-off-autocomplete-on-filter

    I hope this will prove helpful.

    Regards,
    Eyup
    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. sri
    sri avatar
    3 posts
    Member since:
    Jul 2012

    Posted 06 Sep in reply to Eyup Link to this post

    Hi Eyup,

    Thanks for the reply. I tried your solution and it works. 

     I have one more question as well. Instead of providing .filterbale, .show filter and .length on every column, can we do it once so it can be applied to whole grid columns.

     

    Thanks!

    Sri

     

     

  5. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 08 Sep Link to this post

    Hello Sri,

    I am afraid this requirement is not supported. Generally, you can access the kendo grid object using jQuery and apply some public settings, however, it will required custom implementation:
    http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.filterable

    Regards,
    Eyup
    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