c4fc61101a7c5884ffb2c1e0634e5c7d1e9ebd2b.svn-base 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Customize Columns of PropertyGrid - 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>Customize Columns of PropertyGrid</h2>
  14. <p>The columns of PropertyGrid can be changed.</p>
  15. <div style="margin:20px 0;"></div>
  16. <table class="easyui-propertygrid" style="width:300px" data-options="
  17. url: 'propertygrid_data1.json',
  18. method: 'get',
  19. showGroup: true,
  20. scrollbarSize: 0,
  21. columns: mycolumns
  22. ">
  23. </table>
  24. <script>
  25. var mycolumns = [[
  26. {field:'name',title:'MyName',width:100,sortable:true},
  27. {field:'value',title:'MyValue',width:100,resizable:false}
  28. ]];
  29. </script>
  30. </body>
  31. </html>