
onclick:function(){
Ext.create('Ext.window.Window',{
title:'aa',
width:500,
height:500,
items:[{ xtype: 'grid',
columns: [
{ text: 'Name', dataIndex: 'name' },
{ text: 'Email', dataIndex: 'email', flex: 1 },
{ text: 'Phone', dataIndex: 'phone', flex: 1 },
{text:'text', dataIndex:'service',renderer:function(value,cellmeta){ return ""},
listeners:{ click:function(){
Ext.create('Ext.window.Window',{
title:'grid',
width:300,
height:200,
modal:true,
plain:true,
}).show();
}}
}],
height:300,
width:500,
store: {
type: 'personnel'
}
}],
buttons:[{text:'save', handler:function(){ Ext.Msg.alert('info','8956') }}]
}).show();
}
这个是extjs开发 的 点击save 按钮弹出框正常在上面 , 点击onclick按钮弹出框层在当前层下面, 如何让它显示在上面?![图片描述][2]
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
尝试了你的代码发现没有你所说的问题,你的ext什么版本的。我用4.2.0没有问题
确认2个元素的
z-index属性。在下面是因为其z-index值较小。将其生成的z-index调整应该可能解决。没使用过extjs就只有帮你到这里了。