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

Row filtering autocomplete question

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 2
Brad asked on 01 Nov 2018, 08:55 PM
I have a grid with GridFilterMode.Row.  I am paging on the server retrieving "PageSize" number of records at a time.  I am also using the request.Filters and request.Sorts when I get the data.  The problem I have is with the autocomplete on the filter.  It does not return all the distinct values for the field, only the distinct values for the "PageSize" number of values that I am returning.  It is using the same controller action as my datasource for paging, sorting, etc.  Is there a way to populate those filters from all distinct values of the field instead of only for "PageSize" distinct values?

1 Answer, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 05 Nov 2018, 11:36 AM
Hello Bradley,

There can be separate DataSource specifies for the filter in the Grid column. It is configured via the columns.filterable.dataSource option. The configuration in the .NET Core wrappers would look similar to the following:


columns.Bound(p => p.ShipName).Filterable(ftb => ftb
                .DataSource(ds => ds
                    .Ajax()
                    .Read(r=>r.Action("Action", "Controller")
                    )
                )
            );


Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Brad
Top achievements
Rank 2
Answers by
Viktor Tachev
Telerik team
Share this question
or