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
253
Programatically close FieldChooser window
posted

Hi i have a xamdatagrid that has field chooser . I am  able to open and choose fields, How ever for some condition i hide my xamdatagrid at the same the i want to hide the field chooser associated to this grid.

right now the grid is hidden but the fieldchooserwindow is still open.

any solutions help me

thanks

sandeep

Parents
  • 253
    Verified Answer
    posted

    I got this fixed by myself. Its basically we do not have any Close Window option for xamdatagrid. Hence we have to do a different way

    first get the fieldChooserWindow from fieldChoosedOpeningEvent and assign it to local toolwindow variable in the class

    private void FieldChooser

    private void XamDataGridLanguageEntriesOnFieldChooserOpening(object sender, FieldChooserOpeningEventArgs e)
            {
                fieldChooserWindow = e.ToolWindow;
                e.FieldChooser.FieldDisplayOrder = FieldChooserDisplayOrder.Alphabetical;
            }
    
    
    now in IsVisibleChangeEvent get the toolwindow and call Close method to close the window
    thanks
    sandeep

Reply Children
No Data