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

ObservableGraphSourceBase --> RemoveItem event not being triggered on delete

1 Answer 43 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 19 Jul 2012, 05:17 PM
I have a class inheriting from ObservableGraphSourceBase, and there is inconsistent behavior between the RemoveLink and RemoveItem (override) methods when items on the diagram are deleted.  

RemoveLink appears to work (get hit) in all cases when a connector is deleted.    This works in all scenarios (single item or multiple selection).    This even works if a multiple selection includes both nodes & connectors.

RemoveItem is never hit, no matter how many nodes are deleted (single item or multiple selection).



public class ObservableGraphSource 
		ObservableGraphSourceBase<DiagramTaskDiagramConnector>
{
...
	public override bool RemoveLink(DiagramConnector link)
	{
		// Deleted Link
return base.RemoveLink(link); } public override bool RemoveItem(DiagramTask node) {
		// This is not being called
return base.RemoveItem(node); }

...



Thanks

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 23 Jul 2012, 08:24 AM
Hi,

 Thank you for reporting this issue. I can see that we have already resolved it and the resolution is available with the latest internal builds. Please test this with our latest builds and let us know if the issue still exists.

All the best,
Alex Fidanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Diagram
Asked by
Tom
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or