calling Diagram.Controller.UpdateAllViews();

I'm using version 3.3.3.0 in my tool.

When I delete some symbol (with or without connections) and after that delete operation call Diagram.Controller.UpdateAllViews() it throws NullReferenceException.

Any ideas if my diagram is wrong or if there is a known feature on diagram code?

thanks
Markku

2 Replies

J. J.Nagarajan Syncfusion Team December 7, 2006 05:31 PM UTC

Hi Markku,

We regret for the inconvenience caused. I have tested this issue in v.3.3.0.30 in our ContextMenus sample. I am afraid, I was not able to reproduce this issue. Could you please check the ContextMenus sample and let me know whether you are able to reproduce the issue in this sample?. It would be helpful if you provide a sample or modify the contextmenus sample to reproduce this issue.It will help us to resolve it as early as possible.

Thanks for using Essential Diagram.

Regards,
J.Nagaraj


MH Markku Hamarila December 11, 2006 01:49 PM UTC

Hi,

I noticed small difference between my code and ContextMenus sample. I used Diagram.Controller.UpdateAllViews(); and sample uses Diagram.Model.UpdateViews();.

I changed my code to use Diagram.Model.UpdateViews(); and it works perfectly. So I'm happy.

Markku

Loader.
Up arrow icon