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.
Syncfusion Feedback

Adding a GuageCustomLabel

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 07:12 AM UTC

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.

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

;