PDA

View Full Version : Ext.MessageBox.confirm appearing behind window object.



javabee
26 Aug 2010, 2:09 AM
Hi all, i have an extjs page that creates a new (modal) Ext.Window object containing a grid. I then apply a selection listener to the rowSelectionModel which then fires a MessageBox.confirm dialog. Problem is, the confirm dialog is appearing behind the window creating the grid and as a result...to make things worse:) is unclickable due to the modal nature of the window. Effectively it seems that the MessageBox is 'tied' to the main page and not the sub window. I've tried a couple of options regardin the scope param but not having much luck, anyone?

thanks in advance



// defined in the grid config. where the grid is nested in the sub window.
sm: new Ext.grid.RowSelectionModel(
{
singleSelect: true,
listeners:
{
rowselect: function(smObj, rowIndex, record) {
selRecordStore = record;
Ext.MessageBox.confirm('Confirm',"Are you sure?",function()
{
alert('confirm clicked');
});
}
}

javabee
31 Aug 2010, 5:07 AM
this is a duplicate, please direct any response to the thread:

http://www.sencha.com/forum/showthread.php?108190-Changing-the-zindex-on-a-window-and-or-MessageBox.confirm-dialog....