[Solved] - Can i show busy circle while load file or data?

Hi,
When I use combobox to select a table from database, it will take some time to wait, I want to prevent users from manipulating it during this time!
Can I do something similar to datagrid?
Thanks you!

5 Replies

SS Susmitha Sundar Syncfusion Team May 11, 2020 04:16 PM UTC

Hi GridLock, 

Thank you for using Syncfusion controls. 

You can use the SfDataGrid.ShowBusyIndicator property to show the busyindicator while loading the data.  


If you want to busy indicator for ComboBox, please let us know.  

Regards, 
Susmitha S 



TG The GridLock May 11, 2020 08:03 PM UTC

Hi Susmitha,
I have a few datagrid and a few combobox on winform (not just one),
My idea is that while loading the file (data), there will be an animation in the middle of the form. I was thinking of a datagrid match, but it took me a few more steps to show the table in the datagrid so if the show was busy circle right away it wouldn't be appropriate. Should I use the progressbar? 


SS Susmitha Sundar Syncfusion Team May 12, 2020 03:39 PM UTC

Hi khanh dang, 
 
You can load the BusyIndicator for Form. Please check the below code, 
 
public partial class Form1 : Form 
{ 
    BusyIndicator busyIndicator = new BusyIndicator(); 
    Timer timer = new Timer(); 
    public Form1() 
    { 
        InitializeComponent(); 
        timer.Tick += Timer_Tick; 
    } 
 
    private void sfButton1_Click(object sender, EventArgs e) 
    { 
        timer.Enabled = true; 
        busyIndicator.Show(this); 
        timer.Start(); 
        timer.Interval=10000; 
        this.sfButton1.Text = string.Empty; 
    } 
 
 
    private void Timer_Tick(object sender, EventArgs e) 
    { 
        busyIndicator.Hide(); 
 
    } 
 
} 
 
Here, we just show busy Indicator in certain time interval. You can use this based on your requirement. 
 
If you use the ProgressBar, you need to change the value of progressbar in the interval of loading. 
 
 
 
Please check the sample and let us know if you need further assistance on this. 
 
Regards, 
Susmitha S 
 



TG The GridLock May 14, 2020 03:44 AM UTC

Your way works well Susmitha,
I will use it.



SS Susmitha Sundar Syncfusion Team May 14, 2020 09:02 AM UTC

Hi khanh dang, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Susmitha S 


Loader.
Up arrow icon