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.

Adding a GuageCustomLabel

Thread ID:

Created:

Updated:

Platform:

Replies:

114068 Oct 25,2013 05:07 PM Oct 29,2013 03:12 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Gauge
Alex Bazzi
Asked On October 25, 2013 05:07 PM

Hi,
How to I add a GuageCustomLabel to an existing CircularGuage added from designer, so for example:

GaugeCustomLabel AvgUtil = new GaugeCustomLabel();
            AvgUtil.LabelValue = "40%";
            AvgUtil.Location = new Point(120, 120);
How to I add this to CircularGuage(cgAvgVehUtil) declared in the designer?
I tried: cgAvgVehUtil.Controls.Add(AvgUtil.);  //but it doesn't work.

Please advise,

Alex

Velmurugan S [Syncfusion]
Replied On October 29, 2013 03:12 AM

Hi Alex,

 

Thanks for using Syncfusion products.

 

We would like to let you know that we can add the “GaugeCutomLable” value to an existing CircularGauge. Please find the below modified code snippet that meets your above mentioned scenario.

<code>

                     GaugeCustomLabel AvgUtil = new GaugeCustomLabel();

            AvgUtil.LabelValue = "40%";

            AvgUtil.Location = new Point(120, 120);

            this.CircularGauge1.Scales[0].CustomLabel.Add(AvgUtil);

 

</code>

 

And also for your reference we have created simple sample, which can be downloaded from the below location.

ErrorCombo.zip

 

Please try the above sample and code snippet, kindly let us know if it helps and any further assistance.

Regards,

Velmurugan.

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.

;