FAQ - nandaabiz/jquery-handsontable-old-0.10 GitHub Wiki
Yes, currently Handsontable renders whole table after each cell edit. If you use internal scrollbars (see Scroll demo), only the visible part of the table is rendered.
Perhaps you run default configuration, which does a lot of slow things for best compatibility. To make it faster:
- define a scrollable viewport (
height,widthoptions) - define column widths (
colWidthsoption)
See Options wiki page for description.
All grids on Scroll demo page are configured like that and they efficiently render data source of 100k+ rows.
Handsontable only renders visible part of the table. If the cell is outside of the viewport, the <TD> element does not exist for it.
For more information, see docs about getCell method
Use cell renderers for that. See Renderer demo.
If you need to enforce cell rerendering (you shoudn't have to if you use cell renderers), then you can always use the provided render method.
You need to add source flag into your methods call.
In most cases it is a last parameter passed to a method (for more info see Methods page).
source is a second parameter in beforeChange & afterChange events. You need add simple if statement, for example: if (source === 'my_source') return;
Make sure that your document has a valid doctype (e.g. <!doctype html>), which triggers IE7 standards mode. It may not work correctly with XHTML and Transitional doctypes.
Related tickets: #631
This example shows a checkbox in the column header that switches all the cell checkboxes: http://jsfiddle.net/wpWMJ/105/ (source)
To provide different number of maximum visible options, add options : { items : 10 } (or another number) to column configuration. You can even set options : { items : Infinity } if you wish. Last example in Autocomplete demo page shows this in action.
Why just don't use CSS?
.handsontable table th, .handsontable table td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}But this will work only when you have specified colWidths options or if you define width / max-width in your CSS for table cell (add it to code above).
This RGB <–> HEX calculator was created to show complex usage of Handsontable API: http://jsfiddle.net/ekvsU/90/
See Understanding column sorting plugin wiki page for a detailed exmplanation.
Make sure that demo isn't already exist on project page before creating new issue with demo request.