You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.1 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <title>Buffer Grid Example</title>
  4. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  5. <!-- GC -->
  6. <!-- LIBS -->
  7. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  8. <!-- ENDLIBS -->
  9. <script type="text/javascript" src="../../ext-all.js"></script>
  10. <script type="text/javascript" src="../ux/BufferView.js"></script>
  11. <script type="text/javascript" src="buffer.js"></script>
  12. <link rel="stylesheet" type="text/css" href="grid-examples.css" />
  13. <!-- Common Styles for the examples -->
  14. <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
  15. <style type="text/css">
  16. .x-grid3-td-topic b {
  17. font-family:tahoma, verdana;
  18. display:block;
  19. overflow:hidden;
  20. width:98%;
  21. text-overflow:ellipsis;
  22. }
  23. .x-grid3-td-topic b i {
  24. font-weight:normal;
  25. font-style: normal;
  26. color:#000;
  27. overflow:hidden;
  28. text-overflow:ellipsis;
  29. }
  30. .x-grid3-td-topic .x-grid3-cell-inner {
  31. white-space: nowrap;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
  37. <h1>Buffer Grid Example</h1>
  38. <p>This example customizes the grid view to do bufferred rendering of the cells of just the visible rows in the grid.
  39. This results in a much smaller DOM structure and substantially improves performance of resizing, forceFit, autoExpandColumn and other layout and DOM manipulation features in a large grid. The smaller DOM structure
  40. can also help to improve the overall performance of your Ext application.<br/><br/>
  41. <b>While this example works perfectly, this is completely experimental and only a subset of standard grid features are available. It might need slight customizing for your application needs.</b></p>
  42. <p>To use this example, be sure to add the following JS file: <a href="../ux/BufferView.js">BufferView.js</a></p>
  43. <p>This grid uses a ScriptTagProxy to fetch cross-domain remote data (from the Ext forums).</p>
  44. <p>Note that the js is not minified so it is readable. See <a href="buffer.js">buffer.js</a>.</p>
  45. <div id="topic-grid"></div>
  46. </body>
  47. </html>