hungsama / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Script running very slow, large data #922

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi,

I am using the struts2 jquery tree plugin. When i implemented this in my 
application its running very slow.

It might be because the script is fetching all the parent and child nodes from 
the database and as the data is very large it is running slow.

Can we have something like. 

First fetch only parent nodes onload of the page and then when user clicks on 
one of the parent node its corresponding child nodes are fetched and displyed.

To go little ahead...

when someone clicks on a parent node the other child nodes which are opened 
earlier should go away so as when someone click on the same parent node he will 
get a newly fetched child nodes.

Thanks,
Uday

Original issue reported on code.google.com by uday8...@gmail.com on 20 Nov 2012 at 6:28

GoogleCodeExporter commented 9 years ago
Have you seen the Tree (JSON Data) Example in the Showcase?

http://struts.jgeppert.com/struts2-jquery-showcase/index.action

This should fit your needs.

Original comment by johgep on 10 Dec 2012 at 12:34