Hello.
We have an In-Browser Silverlight application on which we have 2 XamGrids (v10.3.20103.2098). These Grids can get very large depending on the data requested by the user.
My issue is that we have users with all diferent screen resolutions. So setting the grids' height and width properties to the lowest resolution accepted (1024x768) causes it to look horrid on a screen where the resolution is set to 1920×1080.
I would love to be able to use the Height and Width properties set to "Auto" but it is my understanding that that negates the virtualization. So my question is: is there anyway to accomodate larger screen resolutions but still keep the virtualization?
Thanks,
-John
Hi Stefan,
No questions as of this time.
John
Hello John,
Since your issue with the scrolling has been investigating by one of my colleagues internally, could you please tell me if you have any further questions on this matter.
Looking forward for your reply.
Hi Stefan. Thanks for following up. I have opened up a support case (CAS-85398-JRNJNZ) which is related to this. Although, I believe there is a bigger issue than just the virtualization. I believe the underlying issue may be related to large amounts of unmanaged memeory being used and not released by the grids.
I uploaded a sample application that demonstrates the issue. Basically the scrolling is very sluggish for a grid that has no custom stylesor use of converters, and is only 230 rows. In that sample I took your advice and set the height and width properties in code using screen's properties.
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking into it and I suggest you handle the UserControl’s Loaded event and add the following code in it:
xamGrid1.Width = (double)HtmlPage.Window.Eval("screen.width"); xamGrid1.Height = (double)HtmlPage.Window.Eval("screen.height");
This way the XamGrid’s Width and Height will be set depending on the screen’s resolution and the virtualization will be turned on. Please let me know if this helps you or you need further assistance on this matter.