Change Image when property ShowContentDuringLoad is false

12 posts, 0 answers
  1. Alessio
    Alessio avatar
    9 posts
    Member since:
    Nov 2008

    Posted 12 Feb 2009 Link to this post

    Hi,

    it's possible to change image's default to RadWindow when a page is loading?

    Thank.

    Alessio.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Feb 2009 Link to this post

    Hello Alessio,

    Here is how you can change the loading image for RadWindow:

        <style type="text/css"
        div.radwindow_Default td.loading 
        { 
                background: white url('Skins/Default/Window/Default.gif') no-repeat center !important;            
        } 
        </style> 
    </head> 
    <body> 
        <form id="form1" runat="server"
            <asp:ScriptManager ID="ScriptManager1" runat="server"
            </asp:ScriptManager> 
            <telerik:RadWindow ID="RadWindow1" ShowContentDuringLoad="false" NavigateUrl="http://www.telerik.com" 
                VisibleOnPageLoad="true" runat="server"
            </telerik:RadWindow> 


    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Alex Osokin
    Alex Osokin avatar
    7 posts
    Member since:
    Mar 2006

    Posted 17 Feb 2009 Link to this post

    Can we have a property that allows us to set the url of the image, or even better yet, a customizable template?
    this shouldnt be hard to implement, so if this could make it for the next update it would be awesome
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 17 Feb 2009 Link to this post

    Hi Alex,

    Currently we do not plan to provide such property as the changing of the class is a pretty quick and straightforward solution. Of course if more users request such functionality we will consider it for a future release.



    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Chris Castle
    Chris Castle avatar
    33 posts
    Member since:
    Mar 2006

    Posted 12 May 2009 Link to this post

    If you have upgraded the the Q1 2009 SP1 controls, the css changed.  Here is an example:

     

    /* change loading image */ 
    div.RadWindow_Default td.rwLoading    
    {    
        background: white url('window/sbc108_loading.gif'no-repeat center !important;               
    }  

  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 May 2009 Link to this post

    Thank you for your involvement, Chris.

    More information about the new RadWindow styling is available here:
    RadWindow for ASP.NET AJAX CSS Classes and Their Use



    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. jgig
    jgig avatar
    61 posts
    Member since:
    Apr 2008

    Posted 22 May 2009 Link to this post

    I agree. Would be nice to have a property you can tell it where to get the image from. We try to just use Telerik skins so we can avoid all of the CSS changes with updates. Now when we change the skin or DLL we may have to fix the CSS too.
  8. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 May 2009 Link to this post

    Hi again guys,

    I added this as a feature request for one of the following releases.


    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. Albert Shenker
    Albert Shenker avatar
    579 posts
    Member since:
    Mar 2004

    Posted 12 Mar 2010 Link to this post

    I would also agree that making the loading image customizable would be a nice feature. Another feature which would be useful for me is the following:

    I use rad window primarily to display modal dialogs for adding/editing data. These often contain controls which perform ajax updates within the content of the window. In many cases, I provide a loading image which shows the content area being updated. However, sometimes the update is for the entire content, and it might not be preferred to show a loading image which covers everything. Of course, one can create an IsSticky loading image and place it anywhere within the content, however, I think the most logical place for this would be in the status bar of the window. Therefore, it would be great if Rad Window's status loading image could display when ajax updates are occuring in addition to when the page is loading. In this way, this status bar would function like the Rad Grid status bar, which displays a loading image when an ajax update is occuring in the grid.
  10. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Mar 2010 Link to this post

    Hello Albert,

    Catching Ajax request is achievable, however the main problem in that logic is that the content page (displayed in RadWindow) can be from a domain, different from the one of the parent page. In this case the browser security mechanism would not allow interaction between these pages, e.g. RadWindow will not be able to "catch" the Ajax request and will produce inconsistent result.


    Kind regards,
    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.
  11. Albert Shenker
    Albert Shenker avatar
    579 posts
    Member since:
    Mar 2004

    Posted 16 Mar 2010 Link to this post

    I think I understand your point, but in the vast majority of cases (at least with what I'm developing), the content page Rad Window displays is from the same domain and even the same application as the Rad Window Manager. Are you saying that there currently exists a way to accomplish this in these cases?
  12. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 Mar 2010 Link to this post

    Hello Albert,

    No, currently the only available method for modifying the statusbar is the set_status() one. You could use it to change the text in the status when ajax call starts (for ex. "please wait") and to clear the status message once the call finish.


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