Comments (16)
Also with around 800 rows, it would be nice to not block the whole interface while creating the treegrid.
from jquery-treegrid.
I will think what can I do
from jquery-treegrid.
I've got a view with a bit more than 800 rows, and with this change, it reduces from 40s to 5s. Maybe it needs more test but is seems to work fine for me. And maybe it works only with bootstrap as I'm using the "hidden" class. If not using bootstrap, it would need something to handle the visibility but you shouldn't use hide and show in a loop. Let Jquery handle the loop by applying hide and show to a collection.
from jquery-treegrid.
it is not working for me...i have around 400 to 500 rows it is taking around 40sec..please help me out..
from jquery-treegrid.
you've tried my change?
from jquery-treegrid.
I have the same problem, i have ~1500 rows to show and the treegrid and treeGrid collapse parts are too long and they freeze my browser :
treeGrid: 15861.654ms
collapse: 10863.867ms
from jquery-treegrid.
have you tried my code change suggestion ?
YMA-MDL@633cf33
from jquery-treegrid.
For your change @YMA-MDL I think we should set that like this :
if ($this.treegrid('isOneOfParentsCollapsed')) {
$this.addClass('hide');
} else {
$this.removeClass('hide');
}
Because the show
class in Bootstrap show elements as block
. And the gain is very small (1s)
from jquery-treegrid.
Strange, it made a very significant change for me. This issue was that the code was iterating on important DOM manipulation where now it's just a class update and Jquery does the rest.
from jquery-treegrid.
but that part does not solve the tree-grid initialization. Only the collapse part. I think the modificzation to optimize the code is to rewrittent all of this without jQuery but with pure javascript and frasgments. In my code, if i try to manipulate a large amount of data, i increase the loadTime and reduce this by 10 only with fragment and javascript native DOM elements. jQuery is heavy and too resource hungry to manipulate large amount of data
from jquery-treegrid.
@YMA-MDL - for what it's worth, integration with this script http://nexts.github.io/Clusterize.js/ would likely solve the big data pains and increase your scripts outer limits by hundreds of thousands of records. I might investigate this myself once I have some time.
from jquery-treegrid.
Good Luck, not sure if it will allow to save nested state. Like you browse a structure, and getting back to it later, the same branches are deployd.
from jquery-treegrid.
@YMA-MDL, did you implemented Clusterize? If yes, can you share some sample code, please?
from jquery-treegrid.
No I did not, but I may come across the same need soon.
from jquery-treegrid.
Thank you. I try but it does not worked :(
from jquery-treegrid.
Also tried to combine the Clusterize, but initializing still stays slow with about 1500 rows. Commit from @YMA-MDL (thanks by the way ;-) ) was applied to the code.
Attached the performance record i did with Chrome Version 61.0.3163.100 (64-bit) for future analyses:
from jquery-treegrid.
Related Issues (20)
- Still maintenance or not? HOT 2
- Nested treegrid
- load data by json HOT 1
- Add headers to the treegrid
- Issue with saveState HOT 1
- Can the plugin support ie8?
- Can Support a method reload?
- Bootstrap 4 compatibility?
- Need function on draw tree
- Css not applied to dynamically created treegrid
- Can support load children with ajax,when click expand icon?
- No Google jquery
- Treegrid not working with boostrap 4 and jquery 3+ HOT 7
- How to add new nodes under a node?
- Pagination issue
- Jquery treegrid plugin freezes when table contains more 2500 records (rows)
- Collapsed rows HOT 1
- treegrid problem for show element
- Slows when large amount of data HOT 1
- Long text breaks under icon instead left aligned with text HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-treegrid.