Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Animation to Display During Excel Exporting on UltraWebGrid
posted

hi everybody, I'm having an issue with hiding an animation during the excel export option of the ultrawebgrid. I'm able to display an animation when the user clicks on a link button to export the excel spreadsheet via the client side. Howerver, right after the export, the animation still appears and I can't make it disappear. If anybody could help me, I would greatly appreciate it. Thank you so much.

protected void lbExcelExport_Click(object sender, EventArgs e)

    {

        //ShowReport();

        Infragistics.WebUI.UltraWebGrid.UltraWebGrid uwgGrid = null;

        switch (_reportNumber)

        {

            case 1:

                //Workbook wb = new Workbook();

                //Worksheet ws = wb.Worksheets.Add(ddReport.SelectedItem.Text);

                //if (chart.Visible)

                //{

                //    WorksheetImage wsi = new WorksheetImage(System.Drawing.Image.FromFile(MapPath(_chartImagePath)));

                //    wsi.TopLeftCornerCell = ws.Rows[0].Cells[0];

                //    wsi.BottomRightCornerCell = ws.Rows[2].Cells[5];

                //    wsi.PositioningMode = ShapePositioningMode.DontMoveOrSizeWithCells;

                //    ws.Shapes.Add(wsi);                  

                //}

                uwgExcelExport.ExportMode = Infragistics.WebUI.UltraWebGrid.ExcelExport.ExportMode.Custom;

                uwgGrid = rSummary.GetGrid;

                uwgExcelExport.Export(uwgGrid);//, ws, 10, 0);               

                break;

            case 2:

                uwgGrid = details.GetGrid;

                uwgExcelExport.Export(uwgGrid);

                break;

            case 4:

                uwgGrid = rSummary.GetGrid;

                uwgExcelExport.Export(uwgGrid);

                break;          

        }

    

        //myAnimatedImage1.Visible = false;

    }

 

 

    protected void uwgExcelExport_EndExport(object sender, EndExportEventArgs e)

    {

        e.CurrentWorksheet.Columns[0].Width = 15000;
        e.CurrentWorksheet.Columns[0].CellFormat.WrapText = ExcelDefaultableBoolean.True;
        e.CurrentWorksheet.Columns[0].CellFormat.ShrinkToFit = ExcelDefaultableBoolean.True;
        foreach (WorksheetRow row in e.CurrentWorksheet.Rows)
        {

            row.Hidden = false;

        }

        string javaScript = "<script language=JavaScript>\n" +
                            "document.getElementById('imgLoader').style.visibility = 'hidden';\n" +
                            "</script>";

 
        ClientScript.RegisterStartupScript(typeof(Page) ,"HideUploadProgress", javaScript);

    }

Parents Reply Children
No Data