Grid Searching not honoring the searchable fields.

1 Answer 114 Views
Grid
jerome
Top achievements
Rank 1
Iron
Iron
jerome asked on 18 Aug 2023, 02:12 PM

I have loaded up saved grid settings with a filter such as col state = 'Maine'. 

I have the grid searchable fields set to only a specific column.

.Search(s =>

    {
        s.Field(o => o.ClientName, "contains");
    })

 

Now when i apply the search, its blowing away the state filter criteria and pulling back many more records then it should.

Now i did read this article https://docs.telerik.com/kendo-ui/knowledge-base/grid-persist-filters-when-search-input-is-used

Im prepared to go that route if its required, but what's the point of specifying search fields? Just to tell it how to search the column? Does anyone have a less painful solution then the link above?

 

jerome
Top achievements
Rank 1
Iron
Iron
commented on 22 Aug 2023, 12:36 PM | edited

the answer was to use the article linked above.

1 Answer, 1 is accepted

Sort by
0
Accepted
Anton Mironov
Telerik team
answered on 23 Aug 2023, 11:15 AM

Hello Jerome,

I am glad to hear that the issue is now resolved.

If further assistance or information is needed, do not hesitate to contact me and the team, or of course the Telerik community here.

 

Kind Regards,
Anton Mironov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.

Tags
Grid
Asked by
jerome
Top achievements
Rank 1
Iron
Iron
Answers by
Anton Mironov
Telerik team
Share this question
or