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

[Solved] Static images

1 Answer 123 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.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 18 Feb 2010, 01:19 AM
Hi,

I have a custom user control for one of my columns.  In that user control there a number of images depending on the state.  When I am scrolling the grid there is definately a performance problem that causes the image to redraw behind the text on the same line.  I am assuming this is because the image is being reloaded everytime the row is created/shown. 

Is there a way that I can make the Images a static resource so that the same instances are shared for all of the rows?

Cheers,
Clint

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 23 Feb 2010, 09:48 AM
Hi Clint Singer,

Unfortunately, since Image  is UI element it cannot be added in more than one parent. As a result you cannot have shared UI elements between different parents.
 
However if your image sources are not resources of the application and need to be downloaded you can created dictionary to cache them.

You can also switch to Differed scrolling mode to improve scrolling experience.

If you have any other questions or issues do not hesitate to contact us.

Kind regards,
Tsvyatko
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or