EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 24, 2024, 10:37:11 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Setting the z-index for combobox
Pages: [
1
]
« previous
next »
Print
Author
Topic: Setting the z-index for combobox (Read 11944 times)
pmjenn
Newbie
Posts: 9
Setting the z-index for combobox
«
on:
February 02, 2013, 08:08:35 AM »
When using easy-ui combobox on a select inside a modal dialog, the z-index is not set high enough, causing the dropdown to appear behind the modal dialog. The modal dialog is not easy-ui.
Is there a way to set the z-index by using the onShowPanel option?
$('#mySelect').combobox({
onShowPanel: function(){
.... something here?
},
data:myOptions,
valueField:'optionValue',
textField:'optionLabel'
});
I saw a similar question regarding Message Alert Window, but I'm not sure if the same approach would work for combo/combobox.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Setting the z-index for combobox
«
Reply #1 on:
February 03, 2013, 04:31:55 AM »
Call 'panel' method to get the drop down panel object.
Code:
var p=$(this).combobox('panel');
p.panel('panel').css(...);
Logged
pmjenn
Newbie
Posts: 9
Re: Setting the z-index for combobox
«
Reply #2 on:
February 05, 2013, 05:46:25 AM »
A simple solution for a simple problem. Thanks.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...