Close ejs-dialog with contained ejs-grid

Hi, 
I have a scenario, where i want to show an editable grid within an ejs-dialog -> 
<div id="app">
    <button type="button" @click="show">Show</button>
    <ejs-dialog :visible="falseref="Dialog" width="90%" height="100%" :isModal="true" :buttons="[{ buttonModel: { isPrimary: true, content: 'Close' }, click: this.close }]">
      <ejs-grid :dataSource="data" :editSettings="editSettings" :toolbar="toolbarOptions"></ejs-grid>
    </ejs-dialog>
 </div>

As long as the grid is not editable "allowEditing: false" (hence has no buttons/events registered to button clicks), i can close the dialog via the close() methods.
As soon as the grid is editable "allowEditing: true" the close() method does not get called.
I think there is an issue with event registration. How can i come across this problem in an elegant way?

I attached a small sample that illustrates the problem. As soon as the allowEditing Parameter gets changed, the dialog cannot be closed anymore.

Thanks


Attachment: sample_events_6d39d6e7.zip

2 Replies

IS Indrajith Srinivasan Syncfusion Team May 14, 2020 03:51 PM UTC

Hi Christian,

Greetings from Syncfusion support,
 
 
We have validated the reported query and have confirmed Dialog button click is not binded when grid dialog is placed inside ” as a bug from our end and logged the report for the same, and the fix will be included with our patch release scheduled by first week of June 2020.

You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/13976/ 
 
Regards, 
Indrajith 



IS Indrajith Srinivasan Syncfusion Team June 2, 2020 01:12 PM UTC

Hi Christian, 
 
Thanks for your patience, 
 
We have resolved the issue “Dialog button click is not binded when grid dialog is placed inside” with Dialog and the fix is now available with the package version 18.1.55.  
 
 
Can you please upgrade your package to this version to resolve the issue from your end? 
 
Regards, 
Indrajith 


Loader.
Up arrow icon