Block access to controls in the page on ajax postback

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

    Posted 16 Mar 2012 Link to this post

    Hi,

    We are using Telerik control of version 2009.2.701.35.

    In our application we have requirement as when the user performs any ajax postback operation till the operation is completed the user should not be able to perform another operation (like clicking another button in the page) and so the screen should be like readonly.

    We have a master page which is common for all pages in the application. Currently In the master page on Ajax OnResponseStart event we get the form tag and make it disabled and OnResponseEnd event we get the form tag and make it enabled.

    In this scenario UI shows the whole screen as disabled on request start but the user is able to perform any operation.

    Please let us know if there is any option to implement this functionality using RadAjax controls.

    Thanks
  2. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 21 Mar 2012 Link to this post

    Hi Meenakshi,

    Why not use the RadAjaxLoadingPanel control, its purpose is this exactly - to show loading indication and to prevent user interaction with the controls during AJAX requests:
    http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx

    You can see how to show it over the whole screen here:
    http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-make-a-radajaxloadingpanel-span-over-the-whole-page.aspx

    Kind regards,
    Tsvetina
    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