New search on Blazor Grid

1 Answer 309 Views
Grid
Paul
Top achievements
Rank 1
Iron
Iron
Iron
Paul asked on 24 May 2021, 05:12 AM

Hi

The documentation reads:

  • Fields - a list of string that denotes the fields names that the grid should search in. By default, the grid looks in all string fields in its currently visible columns, and you can define a subset of that.

Question 1:

Why only string fields? In the Netherlands we have a numeric field which is unique for all persons living in the netherlands, many customers search for people using this number, So now i have to make this fields a string to let the user search on it?

 

Question 2:

Lets say i have 2000 records, only 140 records are fetched so far, how is the search working, only on these 140 records?

I can imagine that my rest server is called to let me make a query with a where clause based on the entered search value.

 

Eric

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 May 2021, 07:57 AM

Hi Eric,

You can Follow the implementation of other field types here: https://feedback.telerik.com/blazor/1485012-allow-searchbox-to-work-with-other-data-types. The thread also explains why it cannot happen right now and what kind of feedback we need to implement it. Feel free to join the discussion. I've also added your Vote to it on your behalf which raises its priority, and clicking the Follow button will send you emails for any status updates (such as when we know which release will have it).

The searchbox works with the data the grid has - if you supply all the data, it will work on all the data. If you use OnRead to fetch data on demand, typing in the searchbox will fire OnRead with filter descriptors added for the columns it can affect.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or