EasyUI Forum
April 25, 2024, 08:04:55 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: [SOLVED] Different Style for dropdown values of Grouped combobox  (Read 4514 times)
Coder
Jr. Member
**
Posts: 94


View Profile
« on: September 03, 2017, 04:52:20 PM »

in one page I have two combobox:

Code:

  A: <input id="dgFilterA" class="easyui-combobox" style="width:200px" data-options="editable:false, onChange:dgFilterOnChange, url:'//ajx.$DOMAIN/?vg&s=sv&auth=$AJX_AUTH', method:'get', valueField:'ID', textField:'Name', groupField:'Owned', formatter: fmtComboFilterA, panelHeight:'auto', multiple:true, cls:'fltA'">

  B: <input id="dgFilterB" class="easyui-combobox" style="width:230px" data-options="editable:false, onChange:dgFilterOnChange, url:'//ajx.$DOMAIN/?vg&s=sl&auth=$AJX_AUTH', method:'get', valueField:'ID', textField:'Name', groupField:'Group', formatter: fmtComboFilterB, panelHeight:'auto', multiple:true, cls:'fltB'">


for filter B I dont need Name of group, so I`m in my css file do:
Code:
.combobox-group {
    /* display: none; */
    border-top: 1px solid silver;
    font-size: 0;
    padding: 0;
}

but this code hide GroupCaption and for FilterA Sad

cls property is set value of class only to
  <span class="textbox combo" ...
and  not to
  <div class="panel combo-p panel-htop" .....

How I do it?
« Last Edit: September 05, 2017, 04:18:02 AM by Coder » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 04, 2017, 03:30:07 PM »

You should add the class to the drop-down panel.
Code:
$('#dgFilterA').combobox('panel').addClass('fltA');
$('#dgFilterB').combobox('panel').addClass('fltB');
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!