sselvamani22 / jOrgChart

Here more functionality of jquery orgchart with json support
http://selvamani-subramani.github.io/jOrgChart
30 stars 16 forks source link

Loading nodes on expand button click event #4

Closed gomsmaasi closed 8 years ago

gomsmaasi commented 9 years ago

My Org chart data is more than 25k. i would like to implement loading nodes on '.exp-col' click event... is it possible to append the tree node inside existing orgchart insted of creating new chart...

Any idea....

selvamani-subramani commented 9 years ago

Yeah. Actually the tree is building from un-order list(ul&li). First you form the list and append to the main list. Then call the plugin function. It will build the tree.

gomsmaasi commented 9 years ago

Yes... once i append the 2nd level node list with 1st level and when i call the plugin function it creates node from the beginning as a new chart.. it results 2 org chart... one orgchart is until 1st level, another orgchart is untill 2nd level. we can remove the first orgchart and loads another. i dont want to load from the beginning. so the plugin loads the node from the parent not from the selected nodes... how to do so....

selvamani-subramani commented 9 years ago

This plugin doesn't support to refresh a single node. Once you have framed ul list, then call plugin. When you call plugin it will destroy the orgchart which currently displaying on UI and take a input from ul and build new orgchart.

gomsmaasi commented 9 years ago

Hoo no.......

selvamani-subramani commented 8 years ago

Hi gomsmaasi, Now this design pattern has been improved. Now the org charts creating and updating node will be fast. Please try it on you end and let me know if you have any problem. If any things go wrong, we will restructure it.