maxazan / jquery-treegrid

TreeGrid plugin for jQuery
http://maxazan.github.io/jquery-treegrid
MIT License
553 stars 222 forks source link

Performance improvements for initIndent. #12

Closed joeblubaugh closed 9 years ago

joeblubaugh commented 10 years ago

Saves about 20% wall clock time when initializing large tables.

otisg commented 9 years ago

Would this help with #11 / #18?

Blood-dm commented 9 years ago

This breaks deeper indents above 2 levels. The following code works though:

var expander = $this.find('.treegrid-expander');
var depth = $this.treegrid('getDepth');
for (var i = 0; i < depth; i++) {
    $($this.treegrid('getSetting', 'indentTemplate')).insertBefore(expander);
}
maxazan commented 9 years ago

Thank you for your help. Try new release of plugin. http://maxazan.github.io/jquery-treegrid/examples/example-huge.html