diff --git a/examples/example-multi-grid-basic.html b/examples/example-multi-grid-basic.html
new file mode 100644
index 0000000..155621d
--- /dev/null
+++ b/examples/example-multi-grid-basic.html
@@ -0,0 +1,84 @@
+
+
+
+
+ SlickGrid example: Two Basic grids on page
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ Demonstrates:
+
+ - two basic grids with minimal configuration
+
+ View Source:
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/slick.grid.js b/slick.grid.js
index f4feff1..2750613 100644
--- a/slick.grid.js
+++ b/slick.grid.js
@@ -949,11 +949,7 @@ if (typeof Slick === "undefined") {
}
function createCssRules() {
- // IE limits # of sheets to ~31, instead of adding a new style sheet for each grid just use one
- $style = $('#slickGridStyleSheet');
- if (!$style[0]) {
- $style = $("").appendTo($("head"));
- }
+ $style = $("").appendTo($("head"));
var rowHeight = (options.rowHeight - cellHeightDiff);
var rules = [
"." + uid + " .slick-header-column { left: 1000px; }",
@@ -969,7 +965,7 @@ if (typeof Slick === "undefined") {
}
if ($style[0].styleSheet) { // IE
- $style[0].styleSheet.cssText += rules.join(" ");
+ $style[0].styleSheet.cssText = rules.join(" ");
} else {
$style[0].appendChild(document.createTextNode(rules.join(" ")));
}
diff --git a/tests/40 grids on a page test.html b/tests/40 grids on a page test.html
new file mode 100644
index 0000000..9c8d867
--- /dev/null
+++ b/tests/40 grids on a page test.html
@@ -0,0 +1,317 @@
+
+
+
+
+ SlickGrid example: Two Basic grids on page
+
+
+
+
+
+
+
+
+
+ Grid 01
+
+
+ Grid 02
+
+
+ Grid 03
+
+
+ Grid 04
+
+
+ Grid 05
+
+
+ Grid 06
+
+
+ Grid 07
+
+
+ Grid 08
+
+
+ Grid 09
+
+
+ Grid 10
+
+
+ Grid 11
+
+
+ Grid 12
+
+
+ Grid 13
+
+
+ Grid 14
+
+
+ Grid 15
+
+
+ Grid 16
+
+
+ Grid 17
+
+
+ Grid 18
+
+
+ Grid 19
+
+
+ Grid 20
+
+
+ Grid 21
+
+
+ Grid 22
+
+
+ Grid 23
+
+
+ Grid 24
+
+
+ Grid 25
+
+
+ Grid 26
+
+
+ Grid 27
+
+
+ Grid 28
+
+
+ Grid 29
+
+
+ Grid 30
+
+
+ Grid 31
+
+
+ Grid 32
+
+
+ Grid 33
+
+
+ Grid 34
+
+
+ Grid 35
+
+
+ Grid 36
+
+
+ Grid 37
+
+
+ Grid 38
+
+
+ Grid 39
+
+
+ Grid 40
+
+
+ |
+ Demonstrates:
+
+ - two basic grids with minimal configuration
+
+ View Source:
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+