This is a migrated thread and some comments may be shown as answers.

seachbar over the Grid

4 Answers 77 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Abdou
Top achievements
Rank 1
Abdou asked on 26 Jul 2018, 02:41 PM

Hallo,

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

Sort by
0
Didi
Telerik team
answered on 31 Jul 2018, 10:19 AM
Hi Abdou,

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.

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

0
Abdou
Top achievements
Rank 1
answered on 15 Oct 2018, 09:32 AM

Hi,

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

 

0
Accepted
Didi
Telerik team
answered on 15 Oct 2018, 02:33 PM
Hi Abdou,

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.

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Abdou
Top achievements
Rank 1
answered on 16 Oct 2018, 06:24 AM
thanks Didi exact what i need :)
Tags
DataGrid
Asked by
Abdou
Top achievements
Rank 1
Answers by
Didi
Telerik team
Abdou
Top achievements
Rank 1
Share this question
or