multiple.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Multiple ComboGrid - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Multiple ComboGrid</h2>
  14. <p>Click the right arrow button to show the DataGrid and select items.</p>
  15. <div style="margin:20px 0"></div>
  16. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  17. <div style="margin-bottom:20px">
  18. <select class="easyui-combogrid" style="width:100%" data-options="
  19. panelWidth: 500,
  20. multiple: true,
  21. idField: 'itemid',
  22. textField: 'productname',
  23. url: 'datagrid_data1.json',
  24. method: 'get',
  25. value: ['EST-11','EST-13'],
  26. columns: [[
  27. {field:'itemid',title:'Item ID',width:80},
  28. {field:'productname',title:'Product',width:120},
  29. {field:'listprice',title:'List Price',width:80,align:'right'},
  30. {field:'unitcost',title:'Unit Cost',width:80,align:'right'},
  31. {field:'attr1',title:'Attribute',width:200},
  32. {field:'status',title:'Status',width:60,align:'center'}
  33. ]],
  34. fitColumns: true,
  35. label: 'Select Items:',
  36. labelPosition: 'top'
  37. ">
  38. </select>
  39. </div>
  40. </div>
  41. </body>
  42. </html>