b07612fd5e1733a8aae816c665ed76d71b064cc3.svn-base 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Navigate 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>Navigate ComboGrid</h2>
  14. <p>Navigate through grid items with keyboard to select an item.</p>
  15. <div style="margin:20px 0">
  16. <input type="checkbox" checked onchange="$('#cc').combogrid({selectOnNavigation:$(this).is(':checked')})">
  17. <span>SelectOnNavigation</span>
  18. </div>
  19. <select id="cc" class="easyui-combogrid" style="width:250px" data-options="
  20. panelWidth: 500,
  21. idField: 'itemid',
  22. textField: 'productname',
  23. url: 'datagrid_data1.json',
  24. method: 'get',
  25. columns: [[
  26. {field:'itemid',title:'Item ID',width:80},
  27. {field:'productname',title:'Product',width:120},
  28. {field:'listprice',title:'List Price',width:80,align:'right'},
  29. {field:'unitcost',title:'Unit Cost',width:80,align:'right'},
  30. {field:'attr1',title:'Attribute',width:200},
  31. {field:'status',title:'Status',width:60,align:'center'}
  32. ]],
  33. fitColumns: true
  34. ">
  35. </select>
  36. </body>
  37. </html>