Diagram Refresh

0 Answers 13 Views
Top achievements
Rank 1
Ed asked on 07 Sep 2022, 08:41 PM

I have a diagram configured that reads data from an MVC Controller.  It displays and works fine.  I need to do a long poll and refresh the diagram from the database.  I have tried all kinds of things.

Called refresh on the diagram object,  called read on the datasource. 

What is the proper way to get a Diagram to read the data again and redraw itself.  

Georgi Denchev
Telerik team
commented on 12 Sep 2022, 11:41 AM

Hi, Ed,

Generally speaking, calling the dataSource's read() method is the correct way to re-fetch the data. I am not certain why this is failing in the current case.

You could also try to create new datasource instances and call the setDataSource/setConnectionsDataSource methods to force the diagram to update the underlying data.

If it is possible, could you share a small project with some sample data that I can run and examine locally? Perhaps this will give me an idea as to what is happening.

Best Regards,


No answers yet. Maybe you can help?

Asked by
Top achievements
Rank 1
Share this question