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

RadAjaxLoadingPanel & Telerik.Web.UI

8 Answers 518 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jordan
Top achievements
Rank 1
Jordan asked on 05 Nov 2007, 09:34 PM
When I originally decided to move to the Prometheus build of the RadControls for ASP.NET, one of the benefits I was eager to see in action was the embedded resource feature.

Source control and build management with the previous versions was cumbersome due to several hundred small files attached to the project, i.e. editor skins & icons, images, scripts etc.

My first attempt to use the Prometheus package was quite simple - I created a calendar picker, label, and RadAjaxLoadingPanel. However, the loading panel displays a missing image, unless I copy Loading.gif into my project and reference the image url directly. Is this control's default images not embedded? If so, how do I access them? I would prefer not to fill up my images folder with telerik images, if at all possible.

8 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 06 Nov 2007, 06:35 AM
Hi Jordan,

Thank you for contacting us and for your question.

Indeed, currently you have to specify the path to the image in order to show the loading image in Prometheus RadAjax as you can see from the online demos:

http://www.telerik.com/demos/aspnet/prometheus/Ajax/Examples/Manager/FirstLook/DefaultCS.aspx

However, I'm glad to announce that since Q3 2007 (scheduled for December 17), Prometheus RadAjaxLoadingPanel will have method for getting the loading image from the web resources. The source will look like this:

        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" > 
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /> 
        </telerik:RadAjaxLoadingPanel> 

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jordan
Top achievements
Rank 1
answered on 06 Nov 2007, 05:49 PM
Konstantin - thank you for the swift reply. I look forward to the next release.

Regards,

Jordan Weber-Flink
0
genesplitter
Top achievements
Rank 2
answered on 20 Dec 2007, 07:45 PM
Using the Q3 release of Promethius LoadingPanel, I am getting a missing image with the following code:

<telerik:RadAjaxLoadingPanel
    ID="RadAjaxLoadingPanel1" Runat="server" height="75px" width="75px">
        <img alt="Loading..."
src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0px;" />
</telerik:RadAjaxLoadingPanel>

Has anyone else got this working without copying images into their image folder?
0
Sebastian
Telerik team
answered on 21 Dec 2007, 08:22 AM
Hello Donald,

Using this code you should be able to fetch the image for the RadAjaxLoadingPanel from the embedded web resources. Here is an online demo which illustrates the approach in reality:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/ColumnTypes/DefaultCS.aspx

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mar
Top achievements
Rank 1
answered on 26 Dec 2007, 04:35 AM
I am experiencing a similary issue.  I am using Prometheus Q3 2007 version.  I have a master page which contains the asp:ScriptManager control and the RadAjaxManager.

On the content page, I have a RadAjaxManagerProxy and the AjaxLoadingPanel.  When I placed the loading panel on my form, the image is not resolving.  The img tag does have the GetWebResourceUrl ....

Is this an issue because the loading panel is placed on the content page?
0
Steve
Telerik team
answered on 28 Dec 2007, 10:47 AM
Hello Pratik,

The loading panel does not have to be on the same page where the AjaxManager resides. As long as you are able to reference it through AjaxManagerProxy or even using FindControl() in codebehind, you should be fine. As I could not reproduce the problem you describe in my local tests, I have attached a sample project that works as expected. Please review it and let us know what differs in your case.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mar
Top achievements
Rank 1
answered on 28 Dec 2007, 04:48 PM
Hello Steve,

I think I know what is the issue here.
The loading panel when placed doesn't display the image in the VS designer.  When the page is actually run, it is resolving the path and the image displays fine. 

Thanks for your help.
Pratik
0
Vlad
Telerik team
answered on 02 Jan 2008, 01:48 PM
Hello Pratik,

Indeed you are right. <%= %> will not be executed in design time.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Jordan
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Jordan
Top achievements
Rank 1
genesplitter
Top achievements
Rank 2
Sebastian
Telerik team
Mar
Top achievements
Rank 1
Steve
Telerik team
Vlad
Telerik team
Share this question
or