Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2150
Column Chooser in XamGrid
posted

The column chooser window seems to open as a modeless, top-level popup.  It is a bit of a frustration since I might launch a modal dialog and, if the user happens to have the column chooser popup it will actually overlay my unrelated modal dialogs.

Are there any solutions?  I could sprinkle in a method call that closes the column chooser (if open) but this would need to happen for every modal dialog that might open.

I'm investigating the style for the ColumnChooserDialog but I don't see what I might change there to fix the problem.  I'm also looking at the XamGrid's ColumnChooserSettings which doesn't have anything for me either.

I think I want a very simple solution if possible.  For example, just making the column chooser into a modal window during the "ShowColumnChooser()" method call would be nice.  Or find a way have it hide itself when it loses focus?  Hopefully someone has an idea for me. 

Parents
  • 34810
    Offline posted

    Hello dbeavon,

    Thank you for your post.

    I have been investigating this issue, and while I haven't been able to reproduce the column chooser dialog being displayed over newly-opened modal dialogs, I do have a method for you that allows the column chooser to become a modal window after making the call to ShowColumnChooser(). This involves modifying the template of the ColumnChooserDialog style and including it in your project. One of the first elements of this template is a Popup. I would recommend removing this Popup in favor of a XamDialogWindow, as these can be made modal.

    You may also opt to remove the Grid that represents the header of the original Popup in the template, which also contains the close button for the ColumnChooserDialog. If you do opt to do this and use the close button on the XamDialogWindow instead, please take note that you will want to call HideColumnChooser() prior to ShowColumnChooser() when opening the column chooser programmatically. The reason for this is because the button that is in the original header of the Popup notifies the xamGrid that the column chooser has been closed.

    I have attached a sample project to demonstrate the above.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

    XamGridColumnChooserCase.zip
Reply Children