changing RadAjaxLoading panel position when changing Windows Size

3 posts, 0 answers
  1. Pouya
    Pouya avatar
    10 posts
    Member since:
    Dec 2011

    Posted 13 Dec 2011 Link to this post

    and thank you for your perfect supports
    im using this link to lock the whole page with AjaxLoadingPanel

    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. Andrey
    Andrey avatar
    836 posts

    Posted 14 Dec 2011 Link to this post

    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,
    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
  3. Pouya
    Pouya avatar
    10 posts
    Member since:
    Dec 2011

    Posted 19 Dec 2011 Link to this post

    thank you that's what i want and it helps me alot thank you :)
Back to Top