ce icon indicating copy to clipboard operation
ce copied to clipboard

LazyLoading issue with multiple instance

Open bilencekic opened this issue 7 years ago • 4 comments

I have an issue with multiple instance jexcel on my page. On initial load of screen, lazy loading is working fine. Then i switch to tab2 and tab2 has another jexcel grid also working fine. When i come back tab1, i am destroying the jexcel and re-creating. In this case lazloading is stuck at 100. it doesn't move down. Error

When i check above data-y it shows me 799 even i can see the row as 50 on screen. Due to wrong calculation, page does not scroll. Where can be the issue ?

bilencekic avatar Oct 14 '19 06:10 bilencekic

Which method to destroy are you using?

pphod avatar Oct 14 '19 14:10 pphod

i was using this one jexcel.destroy(document.getElementById("div_id")); i am trying to display divs in a different way (by changing visibility). This is a workaround only, if there is a solution it would be perfect. It looks there is a variable or an element still not cleared and causing this issue. (if i never destroy and re-create jexcel, it is fine. LazyLoading is working fine on both grids)

bilencekic avatar Oct 14 '19 15:10 bilencekic

I would recommend not to use destroy if you need just to hide and show. Is there a way you just hide and show the tabs?

pphod avatar Oct 14 '19 15:10 pphod

Alright, hide and show also works for me. Thanks.

bilencekic avatar Oct 14 '19 15:10 bilencekic