seachbar over the Grid

5 posts, 1 answers
  1. Abdou
    Abdou avatar
    3 posts
    Member since:
    Jul 2018

    Posted 26 Jul Link to this post

    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

  2. Didi
    Admin
    Didi avatar
    93 posts

    Posted 31 Jul Link to this post

    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

  3. Abdou
    Abdou avatar
    3 posts
    Member since:
    Jul 2018

    Posted 15 Oct in reply to Didi Link to this post

    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

     

  4. Answer
    Didi
    Admin
    Didi avatar
    93 posts

    Posted 15 Oct Link to this post

    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
  5. Abdou
    Abdou avatar
    3 posts
    Member since:
    Jul 2018

    Posted 16 Oct Link to this post

    thanks Didi exact what i need :)
Back to Top