Application never closes after Column Chooser was opened
Hi,
i am opening a column chooser on a selection from the data grid context menu.
Code is like this:
public void ShowColumnChooserPanel(object obj)
{
var dataGrid = (obj as GridColumnContextMenuInfo).DataGrid;
ColumnChooser chooserWindow = new ColumnChooser(dataGrid);
chooserWindow = new ColumnChooser(dataGrid);
chooserWindow.Resources.MergedDictionaries.Clear();
chooserWindow.ClearValue(ColumnChooser.StyleProperty);
dataGrid.GridColumnDragDropController = new GridColumnChooserController(dataGrid, chooserWindow);
//ColumnChooser Window will open
chooserWindow.Width = 300;
chooserWindow.Height = 300;
chooserWindow.ShowDialog();
chooserWindow.Owner = System.Windows.Application.Current.MainWindow;
}
When i close the Column chooser window and then terminate my application, the main application window closes, but the application keeps running.
This is not the case when i don't show the column chooser window.
am i doing something wrong?
thx,
Helmut
SIGN IN To post a reply.
3 Replies
MK
Muthukumar Kalyanasundaram
Syncfusion Team
October 17, 2017 03:50 AM UTC
Hi Helmut,
Thank you for contacting Syncfusion support.
We have checked your query. We are able to reproduce the reported problem ”Application never closes after Column Chooser was opened” in our end. On your attached code snippet, you have created the instance of the column chooser window as two time. When you close the column chooser window dialog and then close the main window application. But in sample the application keeps running because the other instance of column chooser windows is running, it’s not yet closed. So you can resolve this problem by defining the column chooser windows in one time. For your reference, we have attached video file in the below location. Could you please refer to it.
Please let us know if you have any other questions.
Regards,
HW
Helmut Wahrmann
October 19, 2017 03:34 PM UTC
Hi Muthukumar,
you were correct. It was the double definition of the columnchooser that made it hang.
Works now perfectly.
Thanks for your prompt response,
Helmut
GT
Gnanasownthari Thirugnanam
Syncfusion Team
October 20, 2017 05:04 AM UTC
Hi Helmut,
Thank you for your update.
Please let us know if you need further assistance on this.
Regards,
Gnanasownthari T.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
HW Helmut Wahrmann
- Oct 14, 2017 09:39 AM UTC
- Oct 20, 2017 05:04 AM UTC