Datagrid OnChange (oninput) search for integers #139

Closed
opened 2026-01-29 17:32:11 +00:00 by claunia · 1 comment
Owner

Originally created by @onemoreuserinthisworld on GitHub (Jun 23, 2021).

Is your feature request related to a problem? Please describe.
When using the "search" feature (filters) in a Datagrid, the text (varchar, nchar, etc...) property displays the results as the user inputs the value. However, the same does not occur when using an integer as you have to hit "enter" to get only that one exact parameter.

Describe the solution you'd like
Is it possible to apply the same concept to integers as well?

Describe alternatives you've considered
I've tried to modify the field to a text using a template. However, it did not yield the expected result.

 <RadzenGridColumn TItem="User" Property="UserId" Title="User Id" Sortable="true" Filterable="true">
                <Template Context="data">
                    @data.OwnerId.ToString()
                </Template>
  </RadzenGridColumn>

Additional context
Add any other context or screenshots about the feature request here.

Originally created by @onemoreuserinthisworld on GitHub (Jun 23, 2021). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can request your feature via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. --> **Is your feature request related to a problem? Please describe.** When using the "search" feature (filters) in a Datagrid, the text (varchar, nchar, etc...) property displays the results as the user inputs the value. However, the same does not occur when using an integer as you have to hit "enter" to get only that one exact parameter. **Describe the solution you'd like** Is it possible to apply the same concept to integers as well? **Describe alternatives you've considered** I've tried to modify the field to a text using a template. However, it did not yield the expected result. ``` <RadzenGridColumn TItem="User" Property="UserId" Title="User Id" Sortable="true" Filterable="true"> <Template Context="data"> @data.OwnerId.ToString() </Template> </RadzenGridColumn> ``` **Additional context** Add any other context or screenshots about the feature request here.
Author
Owner

@enchev commented on GitHub (Jun 24, 2021):

Hey @onemoreuserinthisworld ,

The grid filter will use Contains for strings, this is not possible for numeric types.

@enchev commented on GitHub (Jun 24, 2021): Hey @onemoreuserinthisworld , The grid filter will use Contains for strings, this is not possible for numeric types.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#139