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

[Solved] Centre radAjaxLoadingPanel centre on screen

4 Answers 147 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 18 Aug 2009, 08:17 PM
Hi

I am attempting to use the approach in the docs http://www.telerik.com/help/aspnet-ajax/ajxcenterloadingpanel.html
but I can't get it to work.

It was working to position itself at the top of the RadAjaxPanel just fine, but when I added
the addtional code and IsSticky,  it is then stuck to its physical position on the page but the javascript
does not succeed in moving it.  I have amended the code to reflect my specific loading panel name but that is all.

The only differences to the environment shown in the docs is that the page uses a master page,
which is where the script manager is.

The error consol in Firefox shows no errors.

Can you suggest how I can chase down the problem? 

Ubfortunately the page is quite long so the loading panel does need to float.

I am using Q2 2009 version

Thanks for any pointers from anyone who has got this going.

4 Answers, 1 is accepted

Sort by
0
Clive Hoggar
Top achievements
Rank 1
answered on 19 Aug 2009, 09:47 AM
Hi

I am thinking that the problem is the radajaxmanager control.

The page in question uses a master page which  has a radajaxmanagerproxy in it and itslef
has a higher level master page., so I guess there can't be another radajaxmanager control.

If so, how do I address the top level radajaxmanager control to fire off the centerUpdatePanel()
script? (VB script for preference)

Thanks

Clive
0
Dimo
Telerik team
answered on 20 Aug 2009, 06:18 AM
Hello Clive,

You can use the static GetCurrent method of the RadAjaxManager type in your content page, to address the main RadAjaxManager control:

    Protected Sub Page_Load() 
        RadAjaxManager.GetCurrent(Page).ClientEvents.OnRequestStart = "My_Javascript_Function_Name" 
    End Sub 
 


Kind regards,
Dimo
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
Clive Hoggar
Top achievements
Rank 1
answered on 20 Aug 2009, 11:17 AM
Hi

Thanks.
It looks simple enough, but I am getting the famous 'Object reference not set to an instance of an object'
error at run time. I have tried various ways of declaring things but have not been able to
circumvent this error.
What am I missing?
Thanks
Clive
0
Dimo
Telerik team
answered on 20 Aug 2009, 11:59 AM
Hi Clive,

Make sure that your RadAjaxManager is placed after the script manager on the MasterPage.

If you need further assistance, we will need a sample project.

All the best,
Dimo
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.
Tags
Ajax
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Clive Hoggar
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or