We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Deprecated SfDiagram.ItemSelectedEvent in v12.1.0.46

Thread ID:

Created:

Updated:

Platform:

Replies:

116302 May 13,2014 09:24 AM UTC May 15,2014 03:47 AM UTC WinRT 3
loading
Tags: SfDiagram
Andrew Ridout
Asked On May 13, 2014 09:24 AM UTC

Hi,

I have just upgraded to v12.1.0.46 from v11.3.0.33.  Since doing so I am now getting the following error with SfDiagram:

'Syncfusion.UI.XAML.Diagram.SfDraigram' does not contain a definition for 'ItemSelectedEvent' and no extension method 'ItemSelectedEvent' accepting a first argument of type 'Syncfusion.UI.XAML.Diagram.SfDraigram' could be found (are you missing a using directive or an assembly reference?)

Can you please advise what I should use instead of ItemSelectedEvent?

I also note that your API documentation still shows ItemSelectedEvent as being available. Can this be updated?

Thanks,
Andrew



Parthiban A [Syncfusion]
Replied On May 13, 2014 12:37 PM UTC

Hi Andrew,

As we have moved diagram control events and commands to SfDiagram.Info from version 11.4.0.26 onwards. We have marked them as obsolete API in it.  Now we have removed those obsolete API in our latest version 12.1.0.43. Hence we can use diagram control events and commands from SfDiagram.Info as before.

Code Snippet:

SfDiagram diagram=new SfDiagram();

       IGraphInfo diagramInfo = diagram.Info as IGraphInfo;

       diagramInfo.ItemTappedEvent += MainPage_ItemTappedEvent;

       diagramInfo.ItemSelectedEvent += MainPage_ItemSelectedEvent;

       diagramInfo.ConnectorSourceChangedEvent += MainPage_ConnectorSourceChangedEvent;

       diagramInfo.ConnectorSourceChangedEvent += MainPage_ConnectorSourceChangedEvent;

Please let us know if you require any further assist on this.

Regards,

Parthiban


Andrew Ridout
Replied On May 14, 2014 07:54 AM UTC

Many thanks for your help.  This has solved my problem.

Parthiban A [Syncfusion]
Replied On May 15, 2014 03:47 AM UTC

Hi Andrew,

Thanks for your update.

Please let us know, if you require any further assist on this.

Regards,

Parthiban


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;