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.
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,
Georgi