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

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,
rowselect: function(smObj, rowIndex, record) {
selRecordStore = record;
Ext.MessageBox.confirm('Confirm',"Are you sure?",function()
alert('confirm clicked');

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