Disable the whole page with an AJAX update panel

8 posts, 1 answers
  1. Kuldeep
    Kuldeep avatar
    5 posts
    Member since:
    Aug 2011

    Posted 21 Jan 2013 Link to this post

    I am working in asp.net and I need to disable whole page with ajax update panel. There is a button on usercontrol and on click this button I need to disable whole page. Please let me know how I can do this.

    Kuldeep Dwivedi
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 21 Jan 2013 Link to this post

    Hello Kuldeep,

    You can refer to this help article to achieve what you want.

    http://www.telerik.com/help/aspnet-ajax/ajax-disable-controls-during-ajax.html

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kuldeep
    Kuldeep avatar
    5 posts
    Member since:
    Aug 2011

    Posted 21 Jan 2013 Link to this post

    Can you please suggest me My code is like below:

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerScreens" runat="server">

        <AjaxSettings>

         <telerik:AjaxSetting AjaxControlID="RadButtonCompleteTransaction">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="RadNumericTextBoxPaid" />

                    <telerik:AjaxUpdatedControl ControlID="lblTotal" />

                </UpdatedControls>

             </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManagerProxy>

    Now where I need to add 

     <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> in this above code.
    
    

  5. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 21 Jan 2013 Link to this post

    Hello Kuldeep,

    You would that to the RadAjaxManager control on your MasterPage.
  6. Kuldeep
    Kuldeep avatar
    5 posts
    Member since:
    Aug 2011

    Posted 22 Jan 2013 Link to this post

    Enabled false control automatically hides after running the RadAjaxLoadingPanel.

     <telerik:AjaxSetting AjaxControlID="RadButton1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnl1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadNumericTextBox1" />
                    <telerik:AjaxUpdatedControl ControlID="RadNumericTextBox1" />
                    <telerik:AjaxUpdatedControl ControlID="RadButton1" />
                </UpdatedControls>
     </telerik:AjaxSetting>

    From backend code I set the RadButton1 enabled = false on RadButton1 click. but after running this RadAjaxLoadingPanel rad button hide. I am not getting why?  I need visible true and enabled false only.

    Please help me. How I can make it visible true.





  7. Kuldeep
    Kuldeep avatar
    5 posts
    Member since:
    Aug 2011

    Posted 22 Jan 2013 Link to this post

    I tried this(RabButton1) after making Enabled true, but still it hide after run the RadAjaxLoadingPanel. I am using RadAjaxManagerProxy on this user control. ( I have a master page that inherit by a Customer page and that customer page have 5 user controls, one of these have already RadAjaxManager used.) on this user control I take a RadAjaxManagerProxy. Instead of RadAjaxManagerProxy if I use RadAjaxManager it gives an error. I think it is  already on this page user control so it's giving error. 
    Code is below:

    <telerik:AjaxSetting AjaxControlID="RadButton1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnl1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadNumericTextBox1" />
                    <telerik:AjaxUpdatedControl ControlID="RadNumericTextBox1" />
                    <telerik:AjaxUpdatedControl ControlID="RadButton1" />
                </UpdatedControls>
     </telerik:AjaxSetting>

    On 'RadButton1' click I need to set enabled false but need to visible(true). Here as I click on RadButton1 run the RadAjaxLoadingPanel and after completing the process RadButton1 disappear. I am sure no where this button is visible false in code behind. 

    Please help me as soon as possible.
    Thanks!




  8. Answer
    Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 24 Jan 2013 Link to this post

    Hello Kuldeep,

    I have created a sample web site to test the described behavior. On my side everything works as expected and the controls are disabled correctly while their visibility stays untouched. Please check out the attached application and let me know if I am missing something out to reproduce the issue.

    All the best,
    Eyup
    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.
  9. Kuldeep
    Kuldeep avatar
    5 posts
    Member since:
    Aug 2011

    Posted 25 Jan 2013 Link to this post

    Thanks it's working.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017