Hi, I have purchased Handsontable PRO licence. I setup it in my website. I have thousands of records in my table. When i execute handsontable, it will take lots of time to load. I am using “MongoDb” for database.
Can you please give me solution to load records quickly?
If you use custom renderers it can also have an impact on the performance. May I ask how big is the table (row, col)? And the second question - do you use paginating (it also improves performance)?
Here’s a demo with 16 column and 10k rows: http://jsfiddle.net/9mz0etyj/
Your data should load this fast or slightly slower - it’s depends on the data.
thanks @wmachugh
I can see it’s pretty heavy for JSFiddle to handle it. I had to wait few secs to add rowHeaders.
I made a function of your data and load 1000 rows, after a quick timeline session…
The showForPiece() takes nearlt 2seconds to execute and if I see it correctly it runs 2 times so it’s 4 secs more
@wmachugh
I digged a little deeper and have to say that Handsontable loads so long as the renderAllRows: true as you said before.
you also wrote
I set “renderAllRows” to true… because if i set it to false, then if i edit any cell, it will take me on the top of screen
it sounds like a bug to me, but I couldn’t reproduce it with the provided demo. I changed a value in ‘Counter’ column it’s not shifting me up.
The second case is - as @budnix told me that there’s an issue with your first column. You’re hiding something with the hideFirstCell class so the virtual rendering doesn’t load the data correctly.
-ok…i solved that shifted up issue…
-i set “renderAllRow” to false…It renders records virtually…
-I need “xyz” data only while i click on “showForPiece” and “abc” records only while click on “showForHourly” as radio button displayed…but it shows both records while click on any of them…
-Is there any functionality that i can differentiate them…?
I have to say I didn’t examine the whole code as the formatting was killing me but the scenario is always the same. After a radio is checked you destroy or update the table.
ps. as the rows are all the same I highly encourage to create a function that will return a table.
I just update handsontable data (i.e., hot.updateSettings) for “ShowForPiece” and “ShowForHourly” records
I just hide “Hourly” records if “ShowForPiece” selected and hide “Piece” records if “ShowForHourly” selected. But it shows all records… If i set “renderAllRow” to true, then it will work fine but takes too much time to load
Can you please give me demo or example to do for as you said ( I highly encourage to create a function that will return a table) ?
This type of actions are a part of our commercial offer. If you would like to hire us to clean or optimize your code please write us at support@handsontable.com