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

full page update progress

5 Answers 265 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
ehsan
Top achievements
Rank 1
ehsan asked on 19 May 2009, 08:34 AM
hi
i saw in some sites when i click on links or button on the page , all of the page makes gray style and disabled(freezed) while doing action until loading completed.
how we can make asp.net page like that ?
tnx

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 21 May 2009, 02:24 PM
0
Marco
Top achievements
Rank 1
answered on 23 Jul 2010, 02:50 PM
Thanks a lot.  This was helpful.
0
Suresh Mariaraj
Top achievements
Rank 1
answered on 27 Jun 2011, 02:35 PM
Hi,
            I'm using the latest Telrik Version, I need a small clarification. I had seen your articles regarding usage of
RadAjaxLoadingPanel. Almost all the articles points how to bind a RadAjaxLoadingPanel with a specific control.
But in my case, I need this functionality for any postback happening from controls inside a asp:UpdatePanel.
      
        For example, Consider an "asp:UpdatePanel" with 10 controls , out of which 3 having postbacks. 
Will i be able to set a  RadAjaxLoadingPanel for entire "asp:UpdatePanel" instead of declaring
one by one control.

With Regards
Sri
0
Iana Tsolova
Telerik team
answered on 28 Jun 2011, 09:31 AM
Hello Suresh,

To achieve your goal, you can manually show and hide the RadAjaxLoadingPanel. In this case you can specify over which controls it should be displayed.
However, in your case I would suggest that you replace the ASP:UpdatePanel with RadAjaxPanel and set the LoadingPanelID property of the RadAjaxPanel to the ID of the RadAjaxLoadingPanel. Thus no matter which control inside the RadAjaxPanel performs the callback, the RadAjaxLoadingpanel will be automatically displayed over the whole RadAjaxPanel.

Kind regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Suresh Mariaraj
Top achievements
Rank 1
answered on 03 Jul 2011, 02:24 PM
Hi Iana 
   Thanks for the suggestion, But for some reasons i should use asp:update Panel.
Issue is resolved with the following Code.
<script language="javascript" type="text/javascript">
    //            Activating and Deactivating the RadLoadingPanel
    var loadingPanel = "";
    var pageRequestManager = Sys.WebForms.PageRequestManager.getInstance();
    var postBackElement = "";
    pageRequestManager.add_initializeRequest(initializeRequest);
    pageRequestManager.add_endRequest(endRequest);
    function initializeRequest(sender, eventArgs) {
        loadingPanel = $find("loadingPanel1");
        postBackElement = "UpdatePanel1";
        loadingPanel.show(postBackElement);
    }
    function endRequest(sender, eventArgs) {
        loadingPanel = $find("loadingPanel1");
        loadingPanel.hide(postBackElement);
    
</script>


Regards
Sri
Tags
Ajax
Asked by
ehsan
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Marco
Top achievements
Rank 1
Suresh Mariaraj
Top achievements
Rank 1
Share this question
or