Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
161151c
Bugfix init Jquery UI Sortable Widget +1.9
francoispluchino Oct 9, 2012
4746f81
Delete .DS_Store, create README
dandv Nov 8, 2012
554ce40
Merge pull request #482 from oortcloud/master
mleibman Nov 8, 2012
c804311
Stop the grid from trapping keyboard focus.
mleibman Nov 9, 2012
86ce1e1
Fix keyboard focus getting trapped when cell has tabbable elements.
mleibman Nov 29, 2012
9d00e52
Merge pull request #462 from francoispluchino/master
mleibman Dec 3, 2012
f2bf839
Don't initialize Sortable just for destroying
atesgoral Dec 5, 2012
b51762e
Merge pull request #494 from atesgoral/master
mleibman Dec 5, 2012
5b13782
Fix #498 - Selections are not always maintained when filtering (Examp…
mleibman Dec 19, 2012
bc40092
Fix #496 - Improve the example to demonstrate proper use.
mleibman Dec 19, 2012
e4a98a7
Add 'sortable' CSS class to sortable headers (#514).
mleibman Jan 13, 2013
330bdd6
Pass the right row to 'asyncPostRender' function (#505).
mleibman Jan 13, 2013
c403b99
Added distance to prevent unintended reordering
ckosmowski Jan 15, 2013
18d9071
Replace 'hover' deprecated pseudo-event
loris Jan 18, 2013
10c8886
Merge pull request #519 from loris/patch-1
mleibman Jan 18, 2013
1383195
Changed distance value
ckosmowski Jan 18, 2013
64b0440
Merge pull request #517 from ckosmowski/master
mleibman Jan 18, 2013
d068650
Fix #520 - dropstart event not firing
mleibman Jan 18, 2013
c2f1528
Use of navigator.userAgent instead of $.browser
loris Jan 21, 2013
d477f3e
Merge pull request #521 from loris/patch-1
mleibman Jan 21, 2013
1823d5a
Added distance for dragging rows
ckosmowski Jan 24, 2013
12edd5a
Merge pull request #523 from ckosmowski/master
mleibman Jan 24, 2013
a81d823
Shift+arrow keys support for selection
fetis Feb 18, 2013
ef349a5
Use a URL instead of a path for the wiki link in the README
tombenner Feb 22, 2013
30f1a1a
Merge pull request #535 from tombenner/master
mleibman Feb 22, 2013
252e53b
Changes according Pull request #534
fetis Feb 25, 2013
1af8606
Merge pull request #534 from fetis/master
mleibman Feb 25, 2013
90964ce
Add multi-level grouping to DataView.
mleibman Feb 27, 2013
4c48e03
Optimize up DataView aggregation.
mleibman Feb 28, 2013
5ad8c99
Column option for 'focusable' needs a default value. Set to true, as …
dariusk Feb 28, 2013
9431ed9
No longer need to check if columns[cell].focusable is a boolean: sinc…
dariusk Feb 28, 2013
8fccfe1
Merge pull request #538 from dariusk/master
mleibman Mar 1, 2013
da558c3
Adding default value for selectable in column options, optimizing can…
dariusk Mar 1, 2013
9f1c09b
Merge pull request #540 from dariusk/master
mleibman Mar 1, 2013
8c840b2
Added support for predefined group values to DataView.
mleibman Mar 2, 2013
948f046
Improved Checkbox editor ValueChanged behavior.
wilcley Mar 4, 2013
9008c8b
Remove usage on $.browser for jquery 1.9.0
pzgz Mar 5, 2013
0000526
Merge pull request #543 from pzgz/jquery.1.9.0.fix
mleibman Mar 5, 2013
db2fa03
incorporated suggestions by mleibman
wilcley Mar 5, 2013
f322990
Merge pull request #542 from wilcley/master
mleibman Mar 5, 2013
5601f55
Optimize DataView flattenGroupedRows().
mleibman Mar 8, 2013
8367d30
Add option to hide totals row.
svieira Mar 8, 2013
66bdfc5
Merge pull request #550 from svieira/patch-2
mleibman Mar 8, 2013
a2d91ce
Update internal column cache when columns are reordered
ajpiano Mar 18, 2013
54b57e8
Vendor Prefixes, Duplicate Properties
blowsie Mar 19, 2013
18de2bb
Removed -ms-text-overflow: ellipsis;
blowsie Mar 19, 2013
4010da2
Merge pull request #558 from blowsie/patch-2
mleibman Mar 19, 2013
fc1f3c7
ColumnPicker: Update reordering handle to interleave the hidden colum…
ajpiano Mar 21, 2013
6f61c5a
Made scrollCellIntoView() also scroll the row into view.
mleibman Mar 22, 2013
26d96e9
Upgraded to drag/drop 2.2 and fixed a bugfix lost in the gh-pages cle…
mleibman Mar 22, 2013
4f4de5f
bugfix column can grow larger than its maxwidth
Mar 22, 2013
29c200e
forgotten replace
Mar 22, 2013
82e89ef
ColumnPicker: Apply column ordering when the picker is being created,…
ajpiano Mar 22, 2013
53c838c
ColumnPicker: Expose a getAllColumns method so consumer can get the c…
ajpiano Mar 22, 2013
29fea73
ColumnPicker: Update column order when columns are reordered so that …
ajpiano Mar 22, 2013
2570519
Merge pull request #554 from ajpiano/columnpicker-update-column-cache…
mleibman Mar 23, 2013
5721074
retval not declared
Mar 25, 2013
6f13e9e
Merge pull request #562 from diwu1989/master
mleibman Mar 25, 2013
d0a147b
Added non-prefixed box-shadow
blowsie Mar 27, 2013
557b5db
Merge pull request #564 from blowsie/patch-3
mleibman Mar 27, 2013
486c05f
Compressed images saving 15% filesize
blowsie Apr 3, 2013
9b8e987
Abstract away the row positioning.
mleibman Apr 5, 2013
9a1909d
Merge pull request #572 from blowsie/master
mleibman Apr 20, 2013
db6c10b
Merge branch 'fixex5' of https://github.com/oshea00/SlickGrid into os…
mleibman Apr 21, 2013
e3b2821
Fix typos
mleibman Apr 23, 2013
11ce2cd
Add failing test case for inlined filtering.
Apr 23, 2013
46f842e
Fix return statement handling when inlining.
Apr 23, 2013
7c540d2
Add failing test for evaluated returns.
Apr 23, 2013
d773a09
Fix inlining for evaluated return statements.
Apr 23, 2013
e016c9f
Fix Safari 6 toString() bug
mleibman Apr 30, 2013
f4e15ba
Applied fix to destroy error with JQuery 1.9.
kevinbeckstead May 3, 2013
0545158
Merge pull request #597 from beckstea/JQuery-1.9-Fix
mleibman May 4, 2013
15317a5
Stop propagation of click event in showMenu
wienand May 15, 2013
9ebd1f3
Merge pull request #607 from wienand/master
mleibman May 17, 2013
08db083
Add functionality to AutoTooltips to optionally work for header cells…
mckramer May 20, 2013
e9cdc2d
Add example to demonstrate AutoTooltips.
mckramer May 20, 2013
75cc559
Add link to AutoTooltips test.
mckramer May 20, 2013
ce999c9
Fix test and clean up.
mckramer May 20, 2013
e432723
Clean up file.
mckramer May 20, 2013
c73424c
Merge pull request #611 from mckramer/autotooltips2
mleibman May 20, 2013
db5d6d6
Fix #418 - header menu icons not visible in FF when used with sortabl…
mleibman May 20, 2013
3b28068
Fix #613 - set grid focus when the range is selected
mleibman May 22, 2013
da4803f
Fix typos
mleibman Apr 23, 2013
a07cfa2
Fix Safari 6 toString() bug
mleibman Apr 30, 2013
97d0350
Applied fix to destroy error with JQuery 1.9.
kevinbeckstead May 3, 2013
bca7e0d
Stop propagation of click event in showMenu
wienand May 15, 2013
8090d94
Add functionality to AutoTooltips to optionally work for header cells…
mckramer May 20, 2013
289cc60
Add example to demonstrate AutoTooltips.
mckramer May 20, 2013
1aa346d
Add link to AutoTooltips test.
mckramer May 20, 2013
17c8cc5
Fix test and clean up.
mckramer May 20, 2013
db19b19
Clean up file.
mckramer May 20, 2013
6943f96
Fix #418 - header menu icons not visible in FF when used with sortabl…
mleibman May 20, 2013
c41949f
Fix #613 - set grid focus when the range is selected
mleibman May 22, 2013
8098821
Add getContainerNode() method to Slick.Grid.
resnyanskiy May 24, 2013
feb3ead
Fix positioning of a headermenu when grid inside dialog.
resnyanskiy May 24, 2013
2ebc1b2
Move options.buttonImage from JS to CSS
resnyanskiy May 25, 2013
e36800c
Fix #620 :)
mleibman May 29, 2013
e41228a
Merge pull request #619 from resnyanskiy/using-css-files
mleibman May 29, 2013
870482d
Added back the default 'buttonImage' property.
mleibman May 29, 2013
592020d
Merge pull request #617 from resnyanskiy/headermenu-and-dialog
mleibman May 29, 2013
2072d7b
No need to be apologetic about sending people to the wiki for docs :)
DanielBaird Jun 6, 2013
76dd836
Merge pull request #629 from DanielBaird/patch-1
mleibman Jun 6, 2013
378b473
Avoids (minor) jQuery fragments cache leak
ciaranj Jun 10, 2013
30d4c4a
Merge pull request #634 from ciaranj/jquery_fragment_bloat
mleibman Jun 13, 2013
5aa45a0
performance improvement: avoid calling getDataItem multiple times for…
kzhdev Jun 14, 2013
b3af91a
more performance improvement
kzhdev Jun 14, 2013
1e82fec
minimize getDataLength() calls
kzhdev Jun 14, 2013
710d63a
Merge remote-tracking branch 'upstream/master'
kzhdev Jun 14, 2013
ca3ec08
back out for loop changes
kzhdev Jun 15, 2013
ba3dbc1
Add index.html to the examples folder.
RandScullard Jun 19, 2013
d800eff
Merge pull request #639 from RandScullard/master
mleibman Jun 19, 2013
15ac2ca
Merge pull request #638 from kzhdev/master
mleibman Jun 19, 2013
59c371f
Remove the use of jQueryUI effect and move the invalid cell animation…
mleibman Jun 20, 2013
497f612
Re-saved the SlickGrid with UTF-8
Jun 25, 2013
5b531de
Maintain the reference to the right "self" object in DataView.
mleibman Jun 25, 2013
f3f2b0b
Update Example 6 (AJAX-loading data with search) to access the Hacker…
RandScullard Jun 25, 2013
3ccdfcf
Fixed scrolling with keyboard selection
ibrahimkarahan Jun 27, 2013
5952bc6
Merge pull request #658 from ibrahimkarahan/mleibman-master
mleibman Jun 27, 2013
f66327e
fix issue #563
Jun 28, 2013
16c81f6
adjust format
icoxfog417 Jun 29, 2013
9a7e510
Merge pull request #587 from pandell/fix-inline-filters
mleibman Jul 11, 2013
eea4ccf
Merge pull request #659 from icoxfog417/issue563
mleibman Jul 11, 2013
64f34dd
Upgrade to the latest JSONP lib.
mleibman Jul 11, 2013
25bcca7
Merge pull request #655 from RandScullard/Fix601
mleibman Jul 11, 2013
bf8524b
Upgrade to the latest JSONP lib (part 2).
mleibman Jul 11, 2013
c8cd940
Merge branch 'master' of github.com:mleibman/SlickGrid
mleibman Jul 11, 2013
e0a7e6d
Fix the loading indicator not clearing in some cases.
mleibman Jul 11, 2013
630a84e
Merge pull request #669 from mleibman/gh-pages
mleibman Jul 11, 2013
2b1b8b5
Add an example demonstrating the use of a data provider to generate a…
mleibman Jul 11, 2013
f171ce2
Merge pull request #651 from yelinaung/master
mleibman Jul 12, 2013
d66cc78
Fix #605 by directly checking for "slick-cell" on click.
mleibman Jul 29, 2013
b96dea6
Add 'groupFormatter' and 'totalsFormatter' options to Slick.GroupItem…
mleibman Jul 31, 2013
fc618ee
Ignore paddings and borders of column headers and cells when their bo…
alexkirsz Aug 2, 2013
e83f049
Set a correct width for the column header placeholder
alexkirsz Aug 2, 2013
6959725
Add support for vendor prefixes
alexkirsz Aug 5, 2013
9c4498d
Update slick.editors.js
jbthoma Aug 7, 2013
cb9f6fd
Update slick.editors.js
jbthoma Aug 7, 2013
e73940a
very minor Example fix - No code , changed Drag to Resize
dekajp Aug 8, 2013
4efc3a2
Add PgUp/PgDown handling.
mleibman Aug 10, 2013
c60d7e9
Merge pull request #705 from dekajp/Issue-701
mleibman Aug 10, 2013
e4a2f4a
Merge pull request #704 from jbthoma/patch-1
mleibman Aug 10, 2013
78071a9
Check group title in .equals().
mleibman Aug 10, 2013
a35707b
Added a 'slick-range-decorator' class to CellRangeDecorator.
mleibman Aug 10, 2013
3a8ea86
Make the CellRangeDecorator selection CSS class configurable via 'sel…
mleibman Aug 10, 2013
2abb351
Bump version to 2.2.
mleibman Aug 10, 2013
4e1f0e0
Expose scrollPageUp and scrollPageDown methods
Aug 12, 2013
7595380
Rename scrollPageUp/Down to navigatePageUp/Down
Aug 12, 2013
7574e03
Update virtually-rendered cells when resizing the grid (#714).
mleibman Aug 13, 2013
21b0472
Merge pull request #712 from ramen/expose_scroll_page
mleibman Aug 14, 2013
70935e0
Move the default theme CSS out from /examples.
mleibman Aug 14, 2013
34fe742
performance improvement
Aug 21, 2013
9484ddc
remove numberOfRows private member because it only used in UpdateRowC…
Aug 22, 2013
016f925
remove not used variable
Aug 22, 2013
755a0c2
undo edit command doesn't trigger onCellChange event
lencyforce Aug 25, 2013
f3f7dd7
Fix #738 - Use an object instead of an array to hold groups by value.
mleibman Sep 13, 2013
f73a636
Merge pull request #699 from Morhaus/box-sizing
mleibman Sep 13, 2013
31e4304
Merge pull request #725 from kzhdev/performance
mleibman Sep 27, 2013
8c3cab4
Fix #744 - When multi-select is off, do not stop propagation on the s…
mleibman Oct 7, 2013
0c3a260
Add a grid initialization benchmark.
mleibman Oct 12, 2013
058999a
Undo an accedental edit.
mleibman Oct 13, 2013
7a3f3dc
Added Link to Github source
tobya Oct 13, 2013
299959e
updated one missing source link
tobya Oct 13, 2013
af4d20d
Merge pull request #781 from tobya/ghpages-GHLink
mleibman Oct 13, 2013
3377e2d
Fix the onClick firing twice.
mleibman Oct 31, 2013
3c59c98
Visible row count vs total row count in slick.pager.js
styfle Oct 31, 2013
35e6449
Fix #794 - Add an option to keep out-of-the-view items selected when …
mleibman Nov 3, 2013
bbe9bfb
#794 - Add an event that exposes the internal selected row ids.
mleibman Nov 18, 2013
8572d3e
Fix #791 - Cancel the current edit on updateRowCount().
mleibman Nov 18, 2013
e4b9f31
Fixed a missing unit in CSS.
mleibman Nov 18, 2013
f4d76a2
Added an 'addNewRowCssClass' option.
mleibman Nov 18, 2013
11f7c7a
Merge pull request #795 from styfle/master
mleibman Nov 19, 2013
1c01e67
Merge pull request #729 from lencyforce/master
mleibman Nov 19, 2013
34d768d
Workaround for broken inertial scrolling on Mac WebKit/Blink.
mleibman Nov 20, 2013
886c08b
Merge pull request #559 from oadam/bugfixAutoSizeColumn
mleibman Nov 27, 2013
97321dd
Add a requestAnimationFrame-based scrolling benchmark.
mleibman Nov 27, 2013
e6e2f88
Fixed steps in autoSizeColumns() that detects infinite loops for shri…
Dec 3, 2013
e0fa6a8
Merge pull request #818 from mjonas87/master
mleibman Dec 3, 2013
dc5f4ce
Implement lazy totals calculation in the DataView.
mleibman Dec 4, 2013
368e1f5
Optimize DataView group collapse/expand.
mleibman Dec 4, 2013
0af2978
Fix a typo
mleibman Dec 4, 2013
e09e2f6
fixed an issue where the dataView variable was being accessed but did…
Dec 19, 2013
9516f68
Merge pull request #835 from paulsfds/master
mleibman Dec 20, 2013
33e75b0
Fix #864 - Implement a 'destroy' method on Slick.ColumnPicker.
mleibman Jan 20, 2014
e004912
Update README.md
mleibman May 5, 2014
aef6e8d
Update README to match Wiki in identifying 6pac's fork as the most ac…
laughinghan Mar 9, 2016
bf4705a
Merge pull request #1112 from laughinghan/patch-1
mleibman Mar 10, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.gitk*
.idea/*
.idea/*
.DS_Store
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Welcome to SlickGrid

Find documentation and examples in [the wiki](https://github.com/mleibman/SlickGrid/wiki).


**UPDATE: March 5th, 2014 - I have too many things going on in my life right now to really give SlickGrid support and development the time and attention it deserves. I am not stopping it, but I will most likely be unresponsive for some time. Sorry.**

**UPDATE: This repo hasn't been updated in a while. https://github.com/6pac/SlickGrid/wiki seems to be the most active fork at the moment.**

## SlickGrid is an advanced JavaScript grid/spreadsheet component

Some highlights:

* Adaptive virtual scrolling (handle hundreds of thousands of rows with extreme responsiveness)
* Extremely fast rendering speed
* Supports jQuery UI Themes
* Background post-rendering for richer cells
* Configurable & customizable
* Full keyboard navigation
* Column resize/reorder/show/hide
* Column autosizing & force-fit
* Pluggable cell formatters & editors
* Support for editing and creating new rows.
* Grouping, filtering, custom aggregators, and more!
* Advanced detached & multi-field editors with undo/redo support.
* “GlobalEditorLock” to manage concurrent edits in cases where multiple Views on a page can edit the same data.
* Support for [millions of rows](http://stackoverflow.com/a/2569488/1269037)
3 changes: 2 additions & 1 deletion controls/slick.columnpicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
padding: 6px;
-moz-box-shadow: 2px 2px 2px silver;
-webkit-box-shadow: 2px 2px 2px silver;
box-shadow: 2px 2px 2px silver;
min-width: 100px;
cursor: default;
}
Expand All @@ -27,4 +28,4 @@

.slick-columnpicker li a:hover {
background: white;
}
}
39 changes: 39 additions & 0 deletions controls/slick.columnpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

function init() {
grid.onHeaderContextMenu.subscribe(handleHeaderContextMenu);
grid.onColumnsReordered.subscribe(updateColumnOrder);
options = $.extend({}, defaults, options);

$menu = $("<span class='slick-columnpicker' style='display:none;position:absolute;z-index:20;' />").appendTo(document.body);
Expand All @@ -20,9 +21,16 @@

}

function destroy() {
grid.onHeaderContextMenu.unsubscribe(handleHeaderContextMenu);
grid.onColumnsReordered.unsubscribe(updateColumnOrder);
$menu.remove();
}

function handleHeaderContextMenu(e, args) {
e.preventDefault();
$menu.empty();
updateColumnOrder();
columnCheckboxes = [];

var $li, $input;
Expand Down Expand Up @@ -68,6 +76,28 @@
.fadeIn(options.fadeSpeed);
}

function updateColumnOrder() {
// Because columns can be reordered, we have to update the `columns`
// to reflect the new order, however we can't just take `grid.getColumns()`,
// as it does not include columns currently hidden by the picker.
// We create a new `columns` structure by leaving currently-hidden
// columns in their original ordinal position and interleaving the results
// of the current column sort.
var current = grid.getColumns().slice(0);
var ordered = new Array(columns.length);
for (var i = 0; i < ordered.length; i++) {
if ( grid.getColumnIndex(columns[i].id) === undefined ) {
// If the column doesn't return a value from getColumnIndex,
// it is hidden. Leave it in this position.
ordered[i] = columns[i];
} else {
// Otherwise, grab the next visible column.
ordered[i] = current.shift();
}
}
columns = ordered;
}

function updateColumn(e) {
if ($(e.target).data("option") == "autoresize") {
if (e.target.checked) {
Expand Down Expand Up @@ -105,7 +135,16 @@
}
}

function getAllColumns() {
return columns;
}

init();

return {
"getAllColumns": getAllColumns,
"destroy": destroy
};
}

// Slick.Controls.ColumnPicker
Expand Down
7 changes: 7 additions & 0 deletions controls/slick.pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@
}

if (pagingInfo.pageSize == 0) {
var totalRowsCount = dataView.getItems().length;
var visibleRowsCount = pagingInfo.totalRows;
if (visibleRowsCount < totalRowsCount) {
$status.text("Showing " + visibleRowsCount + " of " + totalRowsCount + " rows");
} else {
$status.text("Showing all " + totalRowsCount + " rows");
}
$status.text("Showing all " + pagingInfo.totalRows + " rows");
} else {
$status.text("Showing page " + (pagingInfo.pageNum + 1) + " of " + pagingInfo.totalPages);
Expand Down
78 changes: 78 additions & 0 deletions examples/example-autotooltips.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SlickGrid plugin example: AutoTooltips</title>
<link rel="stylesheet" href="../slick.grid.css" type="text/css"/>
<link rel="stylesheet" href="../css/smoothness/jquery-ui-1.8.16.custom.css" type="text/css"/>
<link rel="stylesheet" href="examples.css" type="text/css"/>
</head>
<body>
<table width="100%">
<tr>
<td valign="top" width="50%">
<div id="myGrid" style="width:600px;height:300px;"></div>
</td>
<td valign="top">
<h2>Demonstrates:</h2>
<ul>
<li>AutoTooltips plugin</li>
</ul>
<h2>Instructions:</h2>
<p>Resize the columns until see ellipsis in column or header. Hover over cell to see tooltip.</p>
<h2>Usage:</h2>
<pre style="background-color: white; font-size: 110%; border-radius: 5px; padding: 20px; ">plugin = new Slick.AutoTooltips(pluginOptions);
grid.registerPlugin(plugin);
grid.render();</pre>

<h2>View Source:</h2>
<ul>
<li><A href="https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example-autotooltips.html" target="_sourcewindow"> View the source for this example on Github</a></li>
</ul>
</td>
</tr>
</table>

<script src="../lib/jquery-1.7.min.js"></script>
<script src="../lib/jquery.event.drag-2.2.js"></script>

<script src="../slick.core.js"></script>
<script src="../slick.grid.js"></script>
<script src="../plugins/slick.autotooltips.js"></script>

<script>
var grid;
var columns = [
{id: "title", name: "Title", field: "title"},
{id: "duration", name: "Duration", field: "duration"},
{id: "%", name: "% Complete", field: "percentComplete"},
{id: "start", name: "Start", field: "start"},
{id: "finish", name: "Finish", field: "finish"},
{id: "effort-driven", name: "Effort Driven", field: "effortDriven"}
];

var options = {
enableCellNavigation: true,
enableColumnReorder: false
};

$(function () {
var data = [];
for (var i = 0; i < 500; i++) {
data[i] = {
title: "Task " + i,
duration: "5 days",
percentComplete: Math.round(Math.random() * 100),
start: "01/01/2009",
finish: "01/05/2009",
effortDriven: (i % 5 == 0)
};
}

grid = new Slick.Grid("#myGrid", data, columns, options);
grid.registerPlugin( new Slick.AutoTooltips({ enableForHeaderCells: true }) );
grid.render();
})
</script>
</body>
</html>
11 changes: 10 additions & 1 deletion examples/example-checkbox-row-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="stylesheet" href="../slick.grid.css" type="text/css"/>
<link rel="stylesheet" href="../css/smoothness/jquery-ui-1.8.16.custom.css" type="text/css"/>
<link rel="stylesheet" href="examples.css" type="text/css"/>
<link rel="stylesheet" href="../controls/slick.columnpicker.css" type="text/css"/>
<style>
.slick-cell-checkboxsel {
background: #f0f0f0;
Expand All @@ -24,14 +25,19 @@ <h2>Demonstrates:</h2>
<ul>
<li>Checkbox row select column</li>
</ul>
<h2>View Source:</h2>
<ul>
<li><A href="https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example-checkbox-row-select.html" target="_sourcewindow"> View the source for this example on Github</a></li>
</ul>

</div>
</div>

<script src="../lib/firebugx.js"></script>

<script src="../lib/jquery-1.7.min.js"></script>
<script src="../lib/jquery-ui-1.8.16.custom.min.js"></script>
<script src="../lib/jquery.event.drag-2.0.min.js"></script>
<script src="../lib/jquery.event.drag-2.2.js"></script>

<script src="../slick.core.js"></script>
<script src="../plugins/slick.checkboxselectcolumn.js"></script>
Expand All @@ -41,6 +47,7 @@ <h2>Demonstrates:</h2>
<script src="../plugins/slick.cellcopymanager.js"></script>
<script src="../plugins/slick.cellselectionmodel.js"></script>
<script src="../plugins/slick.rowselectionmodel.js"></script>
<script src="../controls/slick.columnpicker.js"></script>
<script src="../slick.formatters.js"></script>
<script src="../slick.editors.js"></script>
<script src="../slick.grid.js"></script>
Expand Down Expand Up @@ -81,6 +88,8 @@ <h2>Demonstrates:</h2>
grid = new Slick.Grid("#myGrid", data, columns, options);
grid.setSelectionModel(new Slick.RowSelectionModel({selectActiveRow: false}));
grid.registerPlugin(checkboxSelector);

var columnpicker = new Slick.Controls.ColumnPicker(columns, grid, options);
})
</script>
</body>
Expand Down
8 changes: 6 additions & 2 deletions examples/example-colspan.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ <h2>Demonstrates:</h2>
<ul>
<li>column span</li>
</ul>
<h2>View Source:</h2>
<ul>
<li><A href="https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example-colspan.html" target="_sourcewindow"> View the source for this example on Github</a></li>
</ul>
</td>
</tr>
</table>

<script src="../lib/jquery-1.7.min.js"></script>
<script src="../lib/jquery.event.drag-2.0.min.js"></script>
<script src="../lib/jquery.event.drag-2.2.js"></script>

<script src="../slick.core.js"></script>
<script src="../plugins/slick.cellrangedecorator.js"></script>
Expand All @@ -47,7 +51,7 @@ <h2>Demonstrates:</h2>

$(function () {
var data = [];
for (var i = 0; i < 10; i++) {
for (var i = 0; i < 500; i++) {
data[i] = {
title: "Task " + i,
duration: "5 days",
Expand Down
7 changes: 6 additions & 1 deletion examples/example-composite-editor-item-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ <h2>Demonstrates:</h2>

<h2>Options:</h2>
<button onclick="openDetails()">Open Item Edit for active row</button>

<h2>View Source:</h2>
<ul>
<li><A href="https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example-composite-editor-item-details.html" target="_sourcewindow"> View the source for this example on Github</a></li>
</ul>
</div>
</div>

Expand All @@ -95,7 +100,7 @@ <h2>Options:</h2>

<script src="../lib/jquery-1.7.min.js"></script>
<script src="../lib/jquery-ui-1.8.16.custom.min.js"></script>
<script src="../lib/jquery.event.drag-2.0.min.js"></script>
<script src="../lib/jquery.event.drag-2.2.js"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>

<script src="../slick.core.js"></script>
Expand Down
6 changes: 5 additions & 1 deletion examples/example-custom-column-value-extractor.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ <h2>Demonstrates:</h2>
<ul>
<li>using <u>dataItemColumnValueExtractor</u> option to specify a custom column value extractor</li>
</ul>
<h2>View Source:</h2>
<ul>
<li><A href="https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example-custom-column-value-extractor.html" target="_sourcewindow"> View the source for this example on Github</a></li>
</ul>
</td>
</tr>
</table>

<script src="../lib/jquery-1.7.min.js"></script>
<script src="../lib/jquery.event.drag-2.0.min.js"></script>
<script src="../lib/jquery.event.drag-2.2.js"></script>

<script src="../slick.core.js"></script>
<script src="../slick.grid.js"></script>
Expand Down
6 changes: 5 additions & 1 deletion examples/example-explicit-initialization.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ <h2>Demonstrates:</h2>
This example demonstrates creating a SlickGrid inside a detached element and calling <b>init()</b> explicitly
when the element is added to the DOM.
</p>
<h2>View Source:</h2>
<ul>
<li><A href="https://github.com/mleibman/SlickGrid/blob/gh-pages/examples/example-explicit-initialization.html" target="_sourcewindow"> View the source for this example on Github</a></li>
</ul>
</td>
</tr>
</table>

<script src="../lib/jquery-1.7.min.js"></script>
<script src="../lib/jquery.event.drag-2.0.min.js"></script>
<script src="../lib/jquery.event.drag-2.2.js"></script>

<script src="../slick.core.js"></script>
<script src="../slick.grid.js"></script>
Expand Down
Loading