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

How to display the LoadingTemplate on initial load

5 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter Gray
Top achievements
Rank 1
Peter Gray asked on 28 Oct 2008, 08:29 PM
Hi,
I have followed the instructions here: 

http://www.telerik.com/help/aspnet/grid/grdloadingtemplate.html

to get the loading template to show on the initial load.

I followed the instructions for VB.NET and I can get the loading template to display on initial load, and then my grid shows. So far so good.

When I look closer at the grid I see my grid column titles are missing. The strange thing is if I change the page or expand a hierarchy the titles magically come back.

Anyone have any idea why my grid column titles don't show on the initial load ?  

If I turn off my attempts to get the loading template to work, then my column titles are fine, however I would really like to be able to have that loading template work correctly on initial load.

Any help would be appreciated.

Thansk...Peter

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 29 Oct 2008, 01:23 PM
Hello Peter,

The document you depicted is related to our RadControls for ASP.NET suite.

The appropriate example for RadControls for ASP.NET AJAX is shown below:
Show RadAjaxLoadingPanel on initial page load

Please test it locally and let us know whether it's working as expected.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Peter Gray
Top achievements
Rank 1
answered on 29 Oct 2008, 03:11 PM
Hi Daniel,

This works great. Thank you.

One more dumb question though.  It works fine with the embedded loading gif.

How do I set the loading template to use a custom image that I would like to use instead?  

The following does not seem to work:

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "../Skins/Custom/Grid/loading.gif") %>' style="border:0;" />

All I get is the broken image link picture with the alt "Loading..."  displayed.

Thanks again !

Cheers...peter
0
Peter Gray
Top achievements
Rank 1
answered on 29 Oct 2008, 03:11 PM
Hi Daniel,

This works great. Thank you.

One more dumb question though.  It works fine with the embedded loading gif.

How do I set the loading template to use a custom image that I would like to use instead?  

The following does not seem to work:

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "../Skins/Custom/Grid/loading.gif") %>' style="border:0;" />

All I get is the broken image link picture with the alt "Loading..."  displayed.

Thanks again !

Cheers...peter
0
Accepted
Daniel
Telerik team
answered on 29 Oct 2008, 03:26 PM
Hello Peter,

Please try the following approach:
<img alt="Loading..." src="../Skins/Custom/Grid/loading.gif" style="border:0;" /> 

Let us know if you need more information.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Peter Gray
Top achievements
Rank 1
answered on 29 Oct 2008, 04:23 PM
Works great. Thanks !
Tags
Grid
Asked by
Peter Gray
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Peter Gray
Top achievements
Rank 1
Share this question
or