Permalink
Browse files

SlickGrid v2.1 - Implement virtual rendering for columns.

  • Loading branch information...
1 parent 5b42d6b commit e4f25cbb63722475618f019b92d26aa935a0e1ad @mleibman committed with Jul 6, 2012
Showing with 354 additions and 90 deletions.
  1. +4 −2 examples/example-spreadsheet.html
  2. +0 −1 slick.grid.css
  3. +337 −86 slick.grid.js
  4. +13 −1 tests/scrolling benchmarks.html
@@ -23,6 +23,7 @@
<div class="options-panel">
<h2>Demonstrates:</h2>
<ul>
+ <li>Virtual scrolling on both rows and columns.</li>
<li>Select a range of cells with a mouse</li>
<li>Use Ctrl-C and Ctrl-V keyboard shortcuts to cut and paste cells</li>
<li>Use Esc to cancel a copy and paste operation</li>
@@ -66,10 +67,11 @@
}
];
- for (var i = 0; i < 26; i++) {
+ for (var i = 0; i < 100; i++) {
columns.push({
id: i,
- name: String.fromCharCode("A".charCodeAt(0) + i),
+ name: String.fromCharCode("A".charCodeAt(0) + (i / 26) | 0) +
+ String.fromCharCode("A".charCodeAt(0) + (i % 26)),
field: i,
width: 60,
editor: FormulaEditor
View
@@ -12,7 +12,6 @@ classes should alter those!
}
.slick-header-columns, .slick-headerrow-columns {
- width: 999999px;
position: relative;
white-space: nowrap;
cursor: default;
Oops, something went wrong. Retry.

0 comments on commit e4f25cb

Please sign in to comment.