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

PreLoad the Window Sprites?

6 Answers 60 Views
Window
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 14 Sep 2010, 03:09 PM
Is there a built-in way to preload the image sprites so they don't "pop" in when an alert or something comes up?

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Sep 2010, 02:58 PM
Hi Steve,

You can try showing a RadWindow when the page is loaded with Top or Left property set to a high, negative value (Top="-10000"). This way the customers will not see the opened window but the resources will be loaded.


Best wishes,
Georgi Tunev
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
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 17 Sep 2010, 04:34 PM
I would then have to re-position it when it opens though right?

Or perhaps store current, load it Top left, hide it, and put it back where it was?
0
Cori
Top achievements
Rank 2
answered on 17 Sep 2010, 07:13 PM
Hello Steve,

I'm assuming he is saying to create add a second RadWindow to your RadWIndowManager, which you won't use, a have it appear where the user will not see it. If you do it that way, you don't have to worry about repositioning the RadWindow you are actually going to use.

I hope that helps.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 17 Sep 2010, 07:16 PM
I really don't want to use any resources I don't have to, so a second window is out of the question :)

Since it's a custom skin, if I just load the image sprite into a div way out of the viewable range that should work too, no?
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 24 Nov 2010, 02:41 PM
Any update on this by any chance?

The RadMenu now as a EnableImagePreloading property to fix this issue
0
Georgi Tunev
Telerik team
answered on 26 Nov 2010, 12:15 PM
Hello Steve,

Yes, using a DIV with a custom skin to load the image sprite should work as well. As for such property for RadWindow, we will consider the pros and cons of such approach for the control, but for now I cannot tell if or when we will implement it.

Greetings,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Georgi Tunev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Cori
Top achievements
Rank 2
Share this question
or