EasyUI Forum
September 14, 2025, 03:37:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to use multiple combo select in PropertyGrid ?  (Read 7045 times)
huyannet
Newbie
*
Posts: 6


View Profile Email
« on: June 14, 2016, 02:29:15 AM »

It work for DataGrid, but not work with PropertyGrid.


My code:

code = [
   { "value": "", "label": "HTML" },
   { "value": "", "label": "CSS" },
   { "value": "", "label": "JAVASCRIPT" }
];

rows = [
   [
      {"field":"","name":"Web design","value":"","group":"Basic",
         "editor": {
            "type": "combobox",
            "options": {
               "multiple": true,
               "valueField": "value",
               "textField": "label",
               "data": code
            }
         }      
      },
]];

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 14, 2016, 06:23:07 PM »

You use a wrong combobox data. Each rows must have different 'valueField' value. Please try this code instead.
Code:
code = [
   { "value": "HTML", "label": "HTML" },
   { "value": "CSS", "label": "CSS" },
   { "value": "JAVASCRIPT", "label": "JAVASCRIPT" }
];
Logged
huyannet
Newbie
*
Posts: 6


View Profile Email
« Reply #2 on: June 15, 2016, 05:09:15 PM »

Thank you!
I can do it Smiley
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!