Toolstripitems list in splitbutton hangs when calling savefiledialog.

private async void splitButtonExport_DropDowItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
     if (e.ClickedItem.Text == "to Excel")
     {
          Task k = ExportToExcel();
          await k;
     }
}

private async Task ExportToExcel()
{
     SaveFileDialog saveFileDialog1 = new SaveFileDialog();
     saveFileDialog1.ShowDialog();
     await Task.Run(() =>
     {
          if (saveFileDialog1.FileName != "")
          {
               var options = new ExcelExportingOptions();
               var excelEngine = sfDataGrid1.ExportToExcel(sfDataGrid1.View, options);
               var workBook = excelEngine.Excel.Workbooks[0];
               workBook.SaveAs(saveFileDialog1.FileName);
          }
     });
}

This is my code.




This is the splitbutton I made.





I want the list to disappear when I select an item.
But it doesn't disappear like this.





It is above the windows of other programs..



How can I make the list disappear the moment the item is selected?
If this is not possible, I would like to be behind another program's window or savefiledialog window.


Help me plz~

1 Reply 1 reply marked as answer

EM Elakkiya Muthukumarasamy Syncfusion Team December 23, 2020 01:22 PM UTC

Hi nam ki hun, 
  
Thank for contacting Syncfusion support. 
  
We have checked the reported issue “Toolstripitems list in splitbutton hangs when calling savefiledialog” and confirmed it is a defect. We have logged a report on this and the patch for this fix is estimated to be available on 13th January, 2021.  
  
You can track the status of this defect using the following feedback link:  
 
Please let us know if you need any other assistance on this.  
  
Regards,  
Elakkiya  


Marked as answer
Loader.
Up arrow icon