Org Chart for large dataset..

0 Answers 82 Views
Ajax OrgChart
anuj
Top achievements
Rank 1
anuj asked on 01 Jun 2023, 06:50 AM

I have a large dataset of employees.

I want to load one node initially and all other node collapsed and load other node on demand.

But this control is loading complete data on page load which is making it slow.

is there any way to rebind the org chart on expand and bind all child nodes?

 

Rumen
Telerik team
commented on 02 Jun 2023, 02:46 AM

Did you have the chance to check the Load On Demand online demo which represents the scenario you are looking to achieve?

https://demos.telerik.com/aspnet-ajax/orgchart/examples/loadondemand/defaultcs.aspx 

If you have many records, you can use some of the functionalities of the OrgChart such as Grouping, DrillDown, Load On Demand, etc. For more information, I would suggest reviewing the functionality of our online demos and 

anuj
Top achievements
Rank 1
commented on 02 Jun 2023, 05:53 AM | edited

Thanks for the reply...!

I have tried everything OrgChart control is binding all the nodes every time and firing NodeDataBound event for all nodes.

Like in case of "Load On Demand" initially only one node is visible but in background it is loading all the nodes which is making it very slow.

I want some solution where it bind the only nodes which are visible.

Do you have any sample or solution for my case?

 

 

 

 

Rumen
Telerik team
commented on 02 Jun 2023, 03:28 PM

I have tried everything OrgChart control is binding all the nodes every time and firing NodeDataBound event for all nodes. - that is true even when the Load On Demand feature is enabled, this is how the component behaves by design. 

For the best performance, we recommend the WebService LoadOnDemand binding:

https://docs.telerik.com/devtools/aspnet-ajax/controls/orgchart/data-binding/web-service-binding

https://demos.telerik.com/aspnet-ajax/orgchart/examples/populatingwithdata/webservicebinding/defaultcs.aspx 

You can also check this forum thread - RadOrgChart Performance, Grouping and Search.

 

anuj
Top achievements
Rank 1
commented on 02 Jun 2023, 03:41 PM

I have checked the given thread. So, there is no solution given in that thread also. That user has tried web service approach also but there was no improvement.

I believe this control is not created for large datasets because there is no partial data binding or rebinding on specific events.

So, We need to think about other alternates.

Thanks for the response.

No answers yet. Maybe you can help?

Tags
Ajax OrgChart
Asked by
anuj
Top achievements
Rank 1
Share this question
or