Delaying DataGrid Filtering with ReadData #2561
Unanswered
christophwille
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You could make use of the TextEdit delay feature. For that, you will need to add a FilterTemplate. Example <DataGridColumn TItem="Employee" Field="@nameof( Employee.FirstName )" Caption="First Name" Validator="@CheckFirstName" Editable="true">
<FilterTemplate>
<TextEdit DelayTextOnKeyPress="true" DelayTextOnKeyPressInterval="1000" Placeholder="Search name" Text="@context.SearchValue?.ToString()" TextChanged="@(v=> context.TriggerFilterChange(v))" />
</FilterTemplate>
</DataGridColumn> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have server-side paging implemented, that works great. Now I added filtering via Filterable=true on the respective columns.
Problem: the moment I type a single character, my OnReadData is being called.
Is there a way (similar to what many AutoComplete boxes do) to delay the call to see "oh, does the user keep typing?" (minimizing pointless server calls) Is there a best practice?
Chris
Beta Was this translation helpful? Give feedback.
All reactions