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

changing RadAjaxLoading panel position when changing Windows Size

2 Answers 67 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Pouya
Top achievements
Rank 1
Pouya asked on 13 Dec 2011, 03:48 PM
Hi
and thank you for your perfect supports
im using this link to lock the whole page with AjaxLoadingPanel
www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-make-a-radajaxloadingpanel-span-over-the-whole-page.aspx

but i have a problem with this sample , when im changing the Page size the image stays where it was and i wanna change the image position with changing the page size and i wanna it always shows at t he center
can someone help me about it??

thank you for your help :)

2 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 Dec 2011, 06:33 PM
Hi Pouya,

In the mentioned project the LoadingPanel is shown always in the center of the visible area of the page. However, if you resize the page after the loading panel is already displayed, its position won't be changed. This is true because we are taking the scrollable height and width in the OnAjaxRequest event which is triggered right before the LoadingPanel is shown.

So if you want to change the position of the loading panel after the Ajax request had started you need to hook the onresize event of the browser window and in its body to recalculate the position of the LoadingPanel. You could use the code from this help topic to show/hide it explicitly. More information about the onresize event could be found on this page.

If you had something different in mind, please elaborate a bit more about it, or paste the code if you have problems with specific implementation.

All the best,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Pouya
Top achievements
Rank 1
answered on 19 Dec 2011, 04:29 PM
thank you that's what i want and it helps me alot thank you :)
Tags
Ajax
Asked by
Pouya
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Pouya
Top achievements
Rank 1
Share this question
or