ObservableGraphSourceBase --> RemoveItem event not being triggered on delete

2 posts, 0 answers
  1. Tom
    Tom avatar
    16 posts
    Member since:
    Sep 2012

    Posted 19 Jul 2012 Link to this post

    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 
    	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); }


  2. Alex Fidanov
    Alex Fidanov avatar
    636 posts

    Posted 23 Jul 2012 Link to this post


     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.

  3. DevCraft banner
Back to Top