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

[Solved] RadDataGrid Losing Touch Interaction

2 Answers 119 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tyler
Top achievements
Rank 1
Tyler asked on 06 Mar 2019, 10:27 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 08 Mar 2019, 12:35 PM
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
0
Tyler
Top achievements
Rank 1
answered on 08 Mar 2019, 01:52 PM

Hi Nasko,

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

Best,

Tyler

Tags
DataGrid
Asked by
Tyler
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Tyler
Top achievements
Rank 1
Share this question
or