EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: huyannet on June 14, 2016, 02:29:15 AM



Title: How to use multiple combo select in PropertyGrid ?
Post by: huyannet 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
            }
         }      
      },
]];


Title: Re: How to use multiple combo select in PropertyGrid ?
Post by: stworthy 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" }
];


Title: Re: How to use multiple combo select in PropertyGrid ?
Post by: huyannet on June 15, 2016, 05:09:15 PM
Thank you!
I can do it :)