Message box rendering behind the modal window

  1. #1

    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.

    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.
  2. #2
    Hello Vamsi!

    In this case you have two "on-top" windows competing for foreground display.

    Try creating a CSS class with a very high (above 10,000 should help) zIndex and assign that CSS class to the popup window.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 7
    Last Post: Jul 11, 2014, 3:20 PM
  2. Replies: 3
    Last Post: Dec 05, 2012, 4:32 PM
  3. [CLOSED] message box rendering behind the modal window
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 10, 2012, 4:12 PM
  4. Replies: 5
    Last Post: Apr 20, 2012, 6:20 AM
  5. Replies: 1
    Last Post: Mar 10, 2012, 3:58 PM

Posting Permissions