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.
Unfortunately, activation email could not send to your email. Please try again.

Multiple needles

Thread ID:

Created:

Updated:

Platform:

Replies:

120908 Oct 26,2015 10:52 PM Oct 28,2015 12:52 AM Windows Forms 3
loading
Tags: RadialGauge
Brian Gaude
Asked On October 26, 2015 10:52 PM

Do you have an example for using multiple needles.  I'm having trouble figuring out how to assign a values to multiple needles.  For just one value I'm using radialGauge1.Value = somevariable.  That works ok.  What sytax do I use for multiple needles?

Thanks

Brian

Saravanan T [Syncfusion]
Replied On October 27, 2015 02:21 AM

Hi Brian,

Thanks for contacting Syncfusion Support.

The reported requirement can be achieved by enabling the property named “EnableCustomNeedles” in the RadialGauge. Please refer to the following code example.

Code Example [C#]

//Initialize the needle

Syncfusion.Windows.Forms.Gauge.Needle needle1 = new Syncfusion.Windows.Forms.Gauge.Needle();

Syncfusion.Windows.Forms.Gauge.Needle needle2 = new Syncfusion.Windows.Forms.Gauge.Needle();


//To add needles

this.radialGauge1.NeedleCollection.Add(needle1);

this.radialGauge1.NeedleCollection.Add(needle2);


//To enable the custom needles

this.radialGauge1.EnableCustomNeedles = true;

//To specify the Needle value

this.radialGauge1.NeedleCollection[0].Value = 0;

//To specify the Needle color

this.radialGauge1.NeedleCollection[0].NeedleColor = Color.Red;

//To specify the Needle Style

this.radialGauge1.NeedleCollection[0].NeedleStyle = Syncfusion.Windows.Forms.Gauge.NeedleStyle.Advanced;


We have prepared a sample for your reference which can be download from the following location.

http://www.syncfusion.com/downloads/support/forum/120908/ze/RadialGauge_MultipleNeedle1753817716

Refer to the following UG documentation link.

UG Link: http://help.syncfusion.com/windowsforms/gauge/radial-gauge#how-to-enable-multiple-needles-to-radial-gauge

Screenshot:



Regards,
Saravanan T

Brian Gaude
Replied On October 27, 2015 05:56 PM

Thank you!!!  That is is exactly what I needed.

Senthil Kumaran Rajan [Syncfusion]
Replied On October 28, 2015 12:52 AM

Hi Brian,

Thank you for your update.

We are glad to know that, your requirement has been achieved. Please let us know if you need any further assistance, we will be happy to assist you.

Regards,
Senthil

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.

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.

;