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

Change Image when property ShowContentDuringLoad is false

11 Answers 127 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alessio
Top achievements
Rank 1
Alessio asked on 12 Feb 2009, 04:24 PM
Hi,

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

Thank.

Alessio.

11 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Feb 2009, 02:58 PM
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.
0
Alex Osokin
Top achievements
Rank 1
answered on 17 Feb 2009, 02:12 PM
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
0
Georgi Tunev
Telerik team
answered on 17 Feb 2009, 04:05 PM
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.
0
Chris Castle
Top achievements
Rank 1
answered on 12 May 2009, 06:04 PM
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;               
}  

0
Georgi Tunev
Telerik team
answered on 13 May 2009, 10:16 AM
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.
0
jgig
Top achievements
Rank 1
answered on 22 May 2009, 05:48 PM
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.
0
Georgi Tunev
Telerik team
answered on 25 May 2009, 08:42 AM
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.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 12 Mar 2010, 06:57 PM
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.
0
Georgi Tunev
Telerik team
answered on 16 Mar 2010, 03:31 PM
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.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 16 Mar 2010, 03:35 PM
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?
0
Georgi Tunev
Telerik team
answered on 19 Mar 2010, 10:23 AM
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.
Tags
Window
Asked by
Alessio
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Alex Osokin
Top achievements
Rank 1
Chris Castle
Top achievements
Rank 1
jgig
Top achievements
Rank 1
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Share this question
or