|
sfDataGrid.Style.BusyIndicatorImage = Image.FromFile(@"../../BusyIndicator.gif"); |
|
void ExportToPDFButton_Click(object sender, System.EventArgs e)
{
busyIndicator.Show(this.sfDataGrid1.TableControl);
var options = new ExcelExportingOptions();
options.CellExporting += Options_CellExporting;
var excelEngine = sfDataGrid1.ExportToExcel(sfDataGrid1.View, options);
var workBook = excelEngine.Excel.Workbooks[0];
workBook.SaveAs("Book.xlsx");
System.Diagnostics.Process.Start("Book.xlsx");
busyIndicator.Hide();
} |
|
var options = new ExcelExportingOptions();
options.CellExporting += Options_CellExporting;
private void Options_CellExporting(object sender, DataGridCellExcelExportingEventArgs e)
{
this.progressBar.Value = (sender as ExcelExportingOptions).RowIndex;
} |
Hi, Is it possible to attach the gif from "Resources"? It does not work for me
Hi Sergio Ayala,
Your requirement to attach the gif from "Resources" in SfDataGrid can
be achieved by assign the Image property of BusyIndicator. Please refer to the
below code snippet,
|
//Here assigns the gif to the busy indicator image property busyIndicator.Image = Image.FromFile(@"../../Resources/BusyIndicator.gif"); |
Please find the sample in the attachment and let us know if you have any
concerns about this.
Regards,
Vijayarasan S
If this post is helpful, please consider Accepting it as the
solution so that other members can locate it more quickly.
my question was another. If the file can be embedded like "Property.Resources.aaaaa.gif"
thank you, so. i found the solution:
Environment.CurrentDirectory + @"\Resources\loader.gif"
please, another q: is posible block ui while show the busy indicator. i have problem when the user no wait for the end of process and crash.
thank you.
Hi Sergio Ayala,
Please find the response to the
queries.
|
Queries |
Response |
|
my question was another. If the file can be embedded like "Property.Resources.aaaaa.gif" |
We are glad that the reported issue was resolved on your side |
|
please, another q: is posible block ui while show the busy indicator. i have problem when the user no wait for the end of process and crash. |
By default UI
will be blocked, we cant interact with UI while the Busy Indicator is appearing. |
Please revert us if you have any
concerns on this.
Regards,
Sethuramkumar S