Restrict Other Control Access using RadAjaxLoadingPanel

2 posts, 0 answers
  1. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 14 Mar 2012 Link to this post

    Hi Team,

    while loading the RadAjaxLoadingPanel, we need to restrict the access to other conrols. this panel is used in masterPage only.
    we have used radAjax controls.
    i.e., Page has 4 buttons and lot of other controls. while clicking "button1" , the Loadingpanel and its image will be displayed. at the same time, we can access(click) the other(button) controls.
    kindly clarify this one.

    Regards,
    Meenakshi
  2. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 19 Mar 2012 Link to this post

    Hello,

    You could achieve your goal by hooking the OnRequestStart event of RadAjaxManager. This event will be fired just before the request is sent. On this event you could find and disable all the controls that you want.

    After, the request has been sent and as soon as the response is received you need to re-enable the controls. You could do that by hooking the OnResponseEnd event. Here you will need to find once again the controls and set them as enables.

    Give this approach a try and check whether it is working for you.

    Greetings,
    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.
Back to Top