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

How do I toggle adornment marker visibility?

Thread ID:

Created:

Updated:

Platform:

Replies:

118891 Apr 20,2015 11:34 PM UTC Apr 24,2015 04:12 AM UTC WinRT 3
loading
Tags: SfChart
Gary Montgomery
Asked On April 20, 2015 11:34 PM UTC

I have a xaml defined Spline series which includes a definition for AdornmentsInfo (the predefined circle).

I would like to add a button that toggles the visibility of the adornment markers but I am having heck of a time figuring out how to reference the AdornmentsInfo object that is in my series.
How can I get a hold of the current instance such that I can toggle the ShowMarker value?

The bigger picture of what I am trying to do is allow the user to put the chart into editable mode. So I want to show the markers and enable EnableSegmentDragging when they click a button. Subsequent clicks should take the person into or out of editing mode.

Thank you,
Gary




Suresh S [Syncfusion]
Replied On April 21, 2015 11:00 AM UTC

Hi Gary,

 

Thanks for using Syncfusion products

 

We have analyzed your requirement, the adornment info object can be accessed from ChartSeries as shown in the below code snippet.

 

Code Snippet [C#]:

void Button_Click(object sender, RoutedEventArgs e)

{

     var series = sfchart.Series[0] as SplineSeries;

     var adornmenInfo = series.AdornmentsInfo as ChartAdornmentInfo;

 

}

 

The issue with dynamically changing ShowMarker property, We have considered it as bug and logged an issue report on this. The fix will be available in our upcoming volume 2 release

 

Please let us know in case of any queries

 

Regards,

Suresh S


Gary Montgomery
Replied On April 22, 2015 05:13 PM UTC

Thank you, Suresh.

That did the trick. And for now I am reassigning the data source to get the chart to refresh.



Santhiya Arulsamy [Syncfusion]
Replied On April 24, 2015 04:12 AM UTC

Hi Gray,

Thanks for your update.

Please let us know, if you need any further assistance on this.

Thanks,

Santhiya A

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;