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

Grid column filter search on Kendo Grid column header.

3 Answers 751 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sri
Top achievements
Rank 1
sri asked on 02 Sep 2016, 07:11 PM

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 .

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, going to server call (I mean its calling controller action method every time). I don't want this round trip to happen for every character provide in filter. Is there any way to not call server as data is already the grid and when I type any character in 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.

 

 

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 06 Sep 2016, 06:16 AM
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
0
sri
Top achievements
Rank 1
answered on 06 Sep 2016, 06:16 PM

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

 

 

0
Eyup
Telerik team
answered on 08 Sep 2016, 05:42 PM
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
Tags
Grid
Asked by
sri
Top achievements
Rank 1
Answers by
Eyup
Telerik team
sri
Top achievements
Rank 1
Share this question
or