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

[Solved] RadGridView unloading MediaElement

1 Answer 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stephen
Top achievements
Rank 1
Stephen asked on 06 Sep 2011, 09:27 PM
I am using RadGridView which has a column containing MediaElements. I am running into a problem where when I scroll down it is causing the MediaElement to unload and therefore stop. I know this is not an instance where it should be causing an unloading, but we were able to actually see the Unloaded event fire.

Is there a known fix to this problem? 

1 Answer, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 07 Sep 2011, 08:27 AM
Hello Stephen,

 

RadGridView's virtualization is turned on by default. That means the cells are being reused/recycled when you scroll up and down. I suppose that you have defined the MediaElement wiithin a GridViewDataColumn's CellTemplate and automatically plays the corresponding video.
For the time being I may suggest you to turn off the virtualization feature through setting EnableColumnVirtualization/EnableRowVirtualization properties of RadGridView to False.  
Please give it a try and let me know how it goes. 



All the best,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Stephen
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or