basic.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic 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>Basic ComboGrid</h2>
  14. <p>Click the right arrow button to show the DataGrid.</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. idField: 'itemid',
  21. textField: 'productname',
  22. url: 'datagrid_data1.json',
  23. method: 'get',
  24. columns: [[
  25. {field:'itemid',title:'Item ID',width:80},
  26. {field:'productname',title:'Product',width:120},
  27. {field:'listprice',title:'List Price',width:80,align:'right'},
  28. {field:'unitcost',title:'Unit Cost',width:80,align:'right'},
  29. {field:'attr1',title:'Attribute',width:200},
  30. {field:'status',title:'Status',width:60,align:'center'}
  31. ]],
  32. fitColumns: true,
  33. label: 'Select Item:',
  34. labelPosition: 'top'
  35. ">
  36. </select>
  37. </div>
  38. </div>
  39. </body>
  40. </html>