8f36253523ff303f6cbb6d805128b684074bec86.svn-base 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Initialize Value for 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>Initialize Value for ComboGrid</h2>
  14. <p>Initialize value when ComboGrid is created.</p>
  15. <div style="margin:20px 0"></div>
  16. <input class="easyui-combogrid" style="width:250px" value="EST-12" data-options="
  17. panelWidth: 500,
  18. idField: 'itemid',
  19. textField: 'productname',
  20. url: 'datagrid_data1.json',
  21. method: 'get',
  22. columns: [[
  23. {field:'itemid',title:'Item ID',width:80},
  24. {field:'productname',title:'Product',width:120},
  25. {field:'listprice',title:'List Price',width:80,align:'right'},
  26. {field:'unitcost',title:'Unit Cost',width:80,align:'right'},
  27. {field:'attr1',title:'Attribute',width:200},
  28. {field:'status',title:'Status',width:60,align:'center'}
  29. ]],
  30. fitColumns: true
  31. ">
  32. </body>
  33. </html>