first iam very surprised the good Performance of this Grid while loading more datas from sqlite database. Great!
I have 2 questions:
1. is there a possibility to set a search field over the grid and highlight all hits as you type ?
2. i want handle the row selected Event or row tapevent..is there an Event except selectionchanged ?
Thanhs in advance
4 Answers, 1 is accepted
We are glad to see that the performance of the control exceeds your expectations. Regarding the questions you have raised, here is some more information on them:
1. Search as you type functionality
Currently, the RadDataGrid control doesn't provide searching functionality. Please take a look at the attached project how search as you type over the RadDataGrid control can be achieved. I have logged this as a feature request and you could follow the item on the provided link in our Feedback portal: https://feedback.telerik.com/Project/168/Feedback/Details/254773-datagrid-search-as-you-type-functionality. You can also find your Telerik points updated for your involvement.
2.Row Selected Event
In order to handle the row selected event of the RadDataGrid I suggest using the RadDataGrid.SelectionChanged event. Another option could be the CellTap command that the RadDataGrid control provides. The SDK Browser application has an example which shows how the CellTap command can be used. For more information about all commands that RadDataGrid control provides, please refer to the following link in our documentation: https://docs.telerik.com/devtools/xamarin/controls/datagrid/features/commands. In case the command does not suit your needs, please share more details regarding the exact behavior you want to achieve so we can consider the different options.
Let me know if you have any other questions on this.
i need 2 different way to handle the selection row such a short click( to show info about the selected row for example ) and a long click event(to step tot the next page ).
Is there a possibility short/long click event ??
Thanks in advance
Let me get straight to your questions:
1) Short click event:
You can achieve this by using DataGrid CellTap command. CellTap handles the tap gesture over a grid cell, that is, the intersection of a data row and a column.
2) Long click event:
RadDataGrid does not provide long click event out of the box as there isn't such a gesture exposed in Xamarin.Forms. As an alternative approach you could handle CellDoubleTap command which by default is connected with DataGrid editing functionality. In this case when the command is executed, it will navigate to another page instead of going to edit mode.
Please take a look at the attached sample how this commands could be used and let me know if you have any additional questions.