Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

problems with treeGrid with big number of elements.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people.

[First of all: I'm sorry for my poor English.]

We have a problem here using GWT with TreeGrid.

The question is simple: It works fine when the number of elements inside the structure of the tree is small, but when it grows to a big amount of items, the bottom of the tree is not able to show all of its elements, and it appears in white color but empty.

Then, if you close some of the branches... It shows some more elements of the bottom, depending of the number of elements of the tree.

Can someone help me? There is a solution for this? I've been searching a lot but I didnt find anything useful.

We use this libraries:



And here is an example of code of our application:



Thanks a lot!

Best regards

Paulo
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to load the tree using Async Tree Grid method .If you load grid using sync method means it should be less number of records for better performance.


-Vijay
 
Paulo Macan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijay:

Thanks for your answer.

I'm still thinking how to apply your solution to my application, but while I've been trying diferent things and I found that it seems to work better increasing the size of the Cache. I do it calculating the size of the branch and having this value as cache size

Doing this the treeGrid loads quite slowly and it doesn't work fine always when the number of elements is too big (for example, having one branch with 600 elements or more).

The user have to wait the complete load of the branch but anyway it works better than before.

I don't really know the consequences of doing this.




 
I was her plaything! And so was this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic