RadDataGrid Losing Touch Interaction

3 posts, 1 answers
  1. Tyler
    Tyler avatar
    7 posts
    Member since:
    Jun 2018

    Posted 06 Mar Link to this post

    Hello,

    If I place a RadDataGrid inside one grid, then move the RadDataGrid to another grid, the RadDataGrid quits responding to touch. Similarly (and this is what I'd like to do), if I have RadDataGrid inside a page inside a frame, then move the frame from inside one grid to another grid, the RadDataGrid locks up. The RadDataGrid still updates for changes to the item source, so the binding still works. I just lose the rollover highlighting effect, and I can't select anything. Is there a way to reactivate the RadDataGrid at this point or prevent it from going into this state while moving it?

    Thanks!

    Tyler

  2. Answer
    Nasko
    Admin
    Nasko avatar
    727 posts

    Posted 08 Mar Link to this post

    Hello Tyler,

    I was able to reproduce the described by you issue and it is actually caused by the Loaded and Unloaded events.

    When the DataGrid is removed from the Panel (from the visual tree) it is expected the Unloaded event to be thrown. At the same time when it is added to the Panel (to the visual tree) Loaded event is expected to be thrown. However, it seems that not always the Unloaded event is triggered before the Loaded one. In the DataGrid there is an implementation that relies on the exact order of that events - first the Unloaded should be thrown and after that Loaded. Because the events are not always thrown in that particular order an issue occurs. I have logged it in our Feedback portal on your behalf:
    https://feedback.telerik.com/uwp/1399539-datagrid-selection-stops-working-when-the-control-is-detached-and-right-away-attached-to-the-visual-tree

    The only possible workaround that currently I can suggest you is to put some delay before the DataGrid is placed inside the second Panel. Please, check the attached project that demonstrates how to achieve this.

    I apologize for the inconvenience the issue might be causing you. Your Telerik points have been updated for bringing this to our attention.

    If you have any additional questions or concerns please, let me know.

    Regards,
    Nasko
    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. Tyler
    Tyler avatar
    7 posts
    Member since:
    Jun 2018

    Posted 08 Mar Link to this post

    Hi Nasko,

    Thanks for logging the issue and suggesting a workaround. I appreciate the help!

    Best,

    Tyler

Back to Top