This is a migrated thread and some comments may be shown as answers.

Load On Demand with Large DataSet and No Grouping

1 Answer 37 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
john81
Top achievements
Rank 1
john81 asked on 12 May 2014, 06:17 PM
I'm trying to figure out how to get the OrgChart to work with a large .NET dataset but I'm not having much luck.

If I just bind the dataset using .DataSource it takes over a minute to draw the nodes and the page is less than responsive.  That's no good.

I tried setting the property LoadOnDemand="Nodes" but that doesn't seem to do anything.  All the nodes are rendered.

I can limit the number of levels on the initial rendering using the MaxDataBindDepth property.  That works great but I don't see + signs on nodes that have children so I can't expand the tree as I would expect.

The Load on Demand demo looks like it would provide functionality that I want but it is setup to do grouping which I don't want.  Is there an example somewhere of a straight forward bind to a .NET dataset (or datatable) with LoadOnDemand that only loads 2 or 3 levels then allows you to click on the + on each node that has children to further expand the tree?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 May 2014, 11:13 AM
Hello,

I am attaching a sample where similar behavior is applied by using the sample code provided in this help topic.

Hope this will be helpful.

Regards,
Plamen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
OrgChart
Asked by
john81
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or