Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Trying to use a loading panel and a callback together to display an indication to wait, while the server side processing of the user control is generating a potentially large csv file....

                                    The end-user will see a button that says download file, and upon clicking the button a loading panel should appear advising the user to wait, while the csv file is generated.

                                    How can I do this?

                                    [VB.NET]
                                    Imports D5FPX Imports System.Data.Linq Imports System.Configuration.ConfigurationManager Imports System.Data Partial Class MyFolder_MyUserControl Inherits UserControlBase Const NINE_NUMERO As Integer = 1 Const VBA As String = "xyz" Const CVS_FORMATTER As String = "{0:F2}" Dim realcode As String = "99999" Dim mycsv As String Dim pc As PersistenceClass Protected Sub Page_Init(sender As Object, e As System.EventArgs) Handles Me.Init If Not Page.IsCallback Then h2.InnerText = UserControlName End If End Sub Protected Sub Page_Load(sender As Object, e As
                                You must  log in  or  register  to leave comments

                                2 Solutions

                                Creation Date Rating Importance Sort by
                                0

                                Hello Danny,

                                Thank you for the project sample. I've checked it and it seems to operate properly.
                                The loading starts spinning upon clicking the buttons and stops after 5 seconds, according to your server side code.
                                I've recorded it and attached a video.

                                Would you please take a look at this video and let us know whether or not you have the same behavior?

                                Thanks,
                                Serge S.

                                a94f751b-d769-4aed-a9d4-4a2cb8eb65f7.swf
                                • TCM IT Group 01.02.2013

                                  Serge/DX-Support Team, please refer to the following example which uses hidden fields and the jQuery cookies plug-in to detect exactly when the file creation is done. http://geekswithblogs.net/GruffCode/archive/2010/10/28/detecting-the-file-download-dialog-in-the-browser.aspx. I don't know how to achieve this same affect the DEVEXPRESS WAY.

                                • Hi Danny,

                                  We need some additional time to process this ticket. We will update the ticket once we have results to report.

                                • Andrew C (DevExpress) 01.03.2013

                                  Hi Danny,

                                  I have studied the article you sent. If I understand you correctly, you want to show ASPxLoadingPanel until the UI locked. To do this, you only need to replace the following example lines:

                                  $.blockUI(); -> lp1.Show();
                                  $.unblockUI(); -> lp1.Hide();

                                You must  log in  or  register  to leave comments
                                0

                                Hello Danny,

                                Please use recommendations from the Q248320 - ASPxCallbackPanel with LoadingPanel issue... report to accomplish this task.

                                See Also:
                                E2293 - How to show ASPxLoadingPanel during export

                                • TCM IT Group 12.21.2012

                                  I am not using GridViews at all in this scenario. I am simply wanting to slap a devexpress or asp.net button on a screen to invoke a file creation process and provide a WAIT INDICATOR, presumably using LOADINGPANEL control. I have attached some code related to using Sys.WebForms.PageRequestManager - E2293. But I still can't make it work. The LOADINGPANEL just keeps spinning...Please help!!!

                                • Hi,

                                  Would you please send us a complete running sample project including the underlying database so we can run and debug it on our side.

                                  Also, I do not see the required JavaScript code (to show the update panel) in the attached index2.aspx page.

                                  [JScript]
                                  <script type="text/javascript"> var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(prm_InitializeRequest); prm.add_endRequest(prm_EndRequest); function prm_InitializeRequest(sender, args) { lp1.Show(); } function prm_EndRequest(sender, args) { lp1.Hide(); btn.DoClick(); } </script>
                                • TCM IT Group 12.21.2012

                                  I have attached some code that is representative of what I am doing at my place of employment...
                                  I am on vs2010, win7-64x, programming in vb.net

                                • Hi,

                                  Thank you for sending the sample project. We need additional time to review it. We will update the ticket once we have results to report.

                                You must  log in  or  register  to leave comments

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners