Aug 03, 2021, 12:23 PM
Message box rendering behind the modal window
Hi Sir,
I have a modal window with few buttons and below is the code for delete button and confirmation is displaying as expected but displaying behind popupwindow.. Please let me know the how we can bring front above popupwindow.
Vamsi.
I have a modal window with few buttons and below is the code for delete button and confirmation is displaying as expected but displaying behind popupwindow.. Please let me know the how we can bring front above popupwindow.
Ext.Net.Parameter extPrm = new Ext.Net.Parameter();
extPrm.Name = "DeletedValues";
extPrm.Value = "Ext.encode(#{GridPanel1}.getRowsValues({selectedOnly:true}))";
extPrm.Mode = ParameterMode.Raw;
extbtn.DirectEvents.Click.EventMask.ShowMask = true;
extbtn.DirectEvents.Click.EventMask.CustomTarget = "#{GridPanel1}.body";
extbtn.DirectEvents.Click.EventMask.Msg = "Deleting...";
extbtn.DirectEvents.Click.Confirmation.ConfirmRequest = true;
extbtn.DirectEvents.Click.Confirmation.Title = "Delete";
extbtn.DirectEvents.Click.Confirmation.Message = "Are you sure you want to delete the selected record(s)?";
//extbtn.DirectEvents.Click.Confirmation.BeforeConfirm = "if(#{GridPanel1}.getSelectionModel().hasSelection()){if(#{ApplyAllDBCheckBox}.getValue()==true){this.message = 'Are you sure you want to delete '+#{hdnTotalRecords}.getValue()+' selected " + TabName + "?';return true;}else{this.message = 'Are you sure you want to delete '+#{GridPanel1}.getSelectionModel().selected.length+' selected " + TabName + "?';return true;}}else{Ext.Msg.alert('Delete','Please select row to delete the " + TabName + "');return false;}";
extbtn.DirectEvents.Click.ExtraParams.Add(extPrm);
extbtn.DirectEvents.Click.ViewStateMode = Ext.Net.ViewStateMode.Enabled;
extbtn.DirectEvents.Click.Event += new ComponentDirectEvent.DirectEventHandler(btnDelete_Click);
toolbar2.Items.Add(extbtn);
Thankyou,Vamsi.
Last edited by fabricio.murta; Aug 03, 2021 at 5:19 PM.