Display the Grid Column Chooser over a dialog

Hello,

How to open the Column Chooser Dialog above ejs-dialog(without target value) using an external button which is inside ejs-dialog.

I'm using this: 

this.grid?.columnChooserModule.openColumnChooser(100, 40);

but Column Chooser appeared under the dialog.
Image_2317_1711896879561

Could you please help me to manage it?



3 Replies

JS Johnson Soundararajan S Syncfusion Team April 2, 2024 12:09 PM UTC

Hi Volodymyr,


Greetings from Syncfusion support.


Upon reviewing your query, it appears that you are attempting to display the Grid column chooser dialog by clicking an external button within a Syncfusion dialog. We have created a sample that demonstrates a similar scenario, where a button within a Syncfusion dialog component triggers the opening of the Grid column chooser The column chooser dialog now displays correctly over the Syncfusion dialog. You can refer to the provided sample and the screenshot for further clarification.


Sample: https://stackblitz.com/edit/angular-jx5rvm-jzuvzz?file=src%2Fapp.component.html,src%2Fapp.component.ts


Screenshot:


A screenshot of a computer

Description automatically generated


If you need any further assistance or have additional questions, please feel free to let us know.


Regards,

Johnson Soundararajan S




VO Volodymyr April 2, 2024 12:56 PM UTC

Hello,

Thanks for your fast response. 

I forgot to mention that I'm using grid inside dashboard layout.

Sample:

https://stackblitz.com/edit/angular-jx5rvm-gewgmp?file=src%2Fapp.component.html


Br Volodymyr



JS Johnson Soundararajan S Syncfusion Team April 9, 2024 05:17 AM UTC

Hi Volodymyr,

By default, the column chooser is rendered within the grid element itself. Since the Grid is positioned behind the Dialog, the Column Chooser will also inherit the same positioning.  The only potential solution to overcome this obstacle would be to render the Column Chooser directly within the document body. However, providing this as a workaround is not feasible because it would impact event handlers for the Column Chooser.

Please get back to us, if you need further assistance.
 

Regards,

Johnson Soundararajan S


Loader.
Up arrow icon