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

Dynamically change GraphSource through PopulateGraphSource method

2 Answers 80 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Saher
Top achievements
Rank 1
Saher asked on 16 Jul 2013, 10:46 PM
Hello,

I am facing an issue where my graph is tree layout and looks fine initially. However, if I choose to change GraphSource upon user input/ clicks using PopulateGraphSource like in the OrgChart example, I get all the nodes stacked on top of each other with no links and all in corner.

I tried resetting graphSource by creating a new one  
this.graphSource = new GraphSource();

I also tried to use the Clear method for GraphSource. Neither did solve the problem, I keep having the same issue.

I am using
ObservableCollection<Node> hierarchicalDataSource;
to fill up my GraphSource object.

All I do is create a new one and then call
PopulateGraphSource();
method.


2 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 19 Jul 2013, 01:23 PM
Hi Saher,

Could you please send us a sample project we could investigate? This would be the best way to assist you with the issue. Otherwise there are many possible scenarios we could miss that are causing the issues you are facing.

I am changing the tread type to general feedback so you could be able to attach zip files.

Regards,
Hristo
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Martin Ivanov
Telerik team
answered on 16 Mar 2017, 09:09 AM
Hello,

You can find a solution for this issues, or at least very similar one in the following forum.

Regards,
Martin
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Diagram
Asked by
Saher
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Martin Ivanov
Telerik team
Share this question
or