jQWidgets Forums

jQuery UI Widgets Forums Angular How to integrate MatDialog into jqxGrid Reply To: How to integrate MatDialog into jqxGrid

How to integrate MatDialog into jqxGrid #104178

jlu
Participant

Never mind, I got this work by creating a closure:


              vButton.addEventHandler('click', (function (dlg) {
                  return function (event) {
                      const dialogConfig = new MatDialogConfig();
                      dialogConfig.disableClose = true;
                      dialogConfig.autoFocus = true;
                      dialogConfig.data = row.bounddata;
                      
                      dlg.open(DeploymentPartnerDetailComponent, dialogConfig);
                  }
              })(this.dialog), false);