BUSY INDICATOR - ICON CHANGE

Hi,

Can we change Busy Indicator Icon to our customised icon(PNG File) in SFDataGrid ?

How to change it, with new revised size ?

Thanks
Deepak




7 Replies

AA Arulraj A Syncfusion Team September 17, 2018 07:19 AM UTC

Hi Deepak, 

Thanks for contacting Syncfusion support. 

You can change the busy indicator icon using SfDataGrid.Style.BusyIndicatorImage property.  But it is not possible to provide PNG image. The image should be in GIF format. The busy indicator will be displayed with the size of the provided image.  

Please refer to the following code example and sample from the following link. 

Code Example: 
sfDataGrid.Style.BusyIndicatorImage = Image.FromFile(@"../../BusyIndicator.gif"); 
 
 
Arulraj A 



DE Deepak October 11, 2018 11:05 AM UTC

Hi,

While Exporting SFDATA Grid Data to Excel/PDF..

How to show Busy Indicator ?
How to show progress bar also ?



Thanks


DY Deivaselvan Y Syncfusion Team October 12, 2018 02:37 PM UTC

Hi Deepak,

Thank you for contacting Syncfusion support.

We have analyzed your query “To show BusyIndincator/Progressbar when exporting datagrid to PDF/Excel”. You can achieve this as like below code snippet

Using BusyIndicator:
 
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(); 
} 

Using ProgressBar :
 
var options = new ExcelExportingOptions(); 
options.CellExporting += Options_CellExporting; 
 
private void Options_CellExporting(object sender, DataGridCellExcelExportingEventArgs e) 
{ 
     this.progressBar.Value = (sender as ExcelExportingOptions).RowIndex; 
} 

Please find sample for the same from the below link and let us know if this helps you

Sample Link:
http://www.syncfusion.com/downloads/support/forum/139868/ze/ExportExcel-2086158457

Regards,
Deivaselvan 



SA Sergio Ayala October 10, 2022 02:19 PM UTC

Hi, Is it possible to attach the gif from "Resources"? It does not work for me



VS Vijayarasan Sivanandham Syncfusion Team October 11, 2022 06:41 PM UTC

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.


Attachment: Sample_becdbca1.zip


SA Sergio Ayala replied to Vijayarasan Sivanandham October 11, 2022 07:22 PM UTC

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.



SS Sethuramkumar Senthilkumar Syncfusion Team October 13, 2022 02:37 PM UTC

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.
We have prepared the simple sample and demo video, please look into this.
In demo ,We are trying to Select the first row of DataGrid while showing Busy indicator
which is not occurring since UI is blocked.


Please revert us if you have any concerns on this.

Regards,
Sethuramkumar S


Attachment: SfDatagridDemo_d736a635.zip

Loader.
Up arrow icon