EasyUI Forum
June 24, 2024, 10:37:11 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Setting the z-index for combobox  (Read 11944 times)
pmjenn
Newbie
*
Posts: 9


View Profile
« 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


View Profile Email
« 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


View Profile
« Reply #2 on: February 05, 2013, 05:46:25 AM »

A simple solution for a simple problem. Thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!