PreLoad the Window Sprites?

7 posts, 0 answers
  1. Steve
    Steve avatar
    1888 posts
    Member since:
    Dec 2008

    Posted 14 Sep 2010 Link to this post

    Is there a built-in way to preload the image sprites so they don't "pop" in when an alert or something comes up?
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 17 Sep 2010 Link to this post

    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
  3. Steve
    Steve avatar
    1888 posts
    Member since:
    Dec 2008

    Posted 17 Sep 2010 Link to this post

    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?
  4. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 17 Sep 2010 Link to this post

    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.
  5. Steve
    Steve avatar
    1888 posts
    Member since:
    Dec 2008

    Posted 17 Sep 2010 Link to this post

    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?
  6. Steve
    Steve avatar
    1888 posts
    Member since:
    Dec 2008

    Posted 24 Nov 2010 Link to this post

    Any update on this by any chance?

    The RadMenu now as a EnableImagePreloading property to fix this issue
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 26 Nov 2010 Link to this post

    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.
Back to Top