Hi,
The XamDataGrid has a property FieldSettings.FilterEvaluationTrigger what can help the developer, to start the filter operation if the "Enter" key is pressed.
My question is that we have also this functionality for the XamGrid., I need something similar like for XamDatagrid so start the filtering when the "Enter" key was pressed.
Hello Michael and thank you for posting to the community!
XamGrid filtering is designed to update the filter and the displayed rows on every key stroke. Currently there is no property similar to the FilterEveluationtrigger for XamDataGrid. If you would like you can add this as a suggestion for future implementation at http://ideas.infragistics.com/ where other user can vote for it and it could be chosen for future development by the product management.Please feel free to let me know if you have any question or concerns.
Hi Maria,
This functionality I need for the XamGrid, not XamDatagrid.
You don't have any solution which I can use to start the filtering only when the "Enter" key is pressed?
HI Maria I found the solution.
For the XamGrid we have the filrering event, and here we can allow the filtering only, when the "Enter" key is hit.
private void XamGrid_Filtering(object sender, CancellableFilteringEventArgs e) { if (Keyboard.IsKeyDown(Key.Enter)) { e.Cancel = false; } else { e.Cancel = true; } }
Thank you for sharing the approach. I am glad that you have resolved the issue and believe that this information will be helpful for other members of the community as well.
HI,
Not really the best option, this is working only when the user hits the "Enter" key, after he writes something.
If he don't press the "Enter" and enters in the new filter text box, I don't know that it is a lost focus and I should let the filtering, and using my method if you return in the old filter textbox, the enter key will not work again, only if I write a new text in the texbox.