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.

Setting Pointer Value from code behind

Thread ID:

Created:

Updated:

Platform:

Replies:

121417 Dec 11,2015 08:09 AM Dec 14,2015 11:21 AM ASP.NET Web Forms 3
loading
Tags: CircularGauge
Cory Wynn
Asked On December 11, 2015 08:09 AM

I'm trying to set the value of the pointer with a string from the code behind, I have the following:

<PointerCollection>
 <ej:Pointers NeedleType="Rectangle" Value="1300" Length="45" Width="1">
   <Border Color="#3AB54B"></Border>
 </ej:Pointers>
</PointerCollection>

In a normal situation I would do the following:

<ej:Pointers runat="server" ID="Point" NeedleType="Rectangle" Value="1300" Length="45" Width="1">

Then in the code behind:
 
Point.Value = 300;

However, when I do this I get the error:

Error Type 'Syncfusion.JavaScript.DataVisualization.Models.Pointers' does not have a public property named 'ID'.

Any help would be much appreciated! 




Cory Wynn
Replied On December 11, 2015 08:49 AM

I've managed to sort the problem above by using the ID from: 

<ej:circularGauge >

How would I set the End value from:

<ej:CircularRanges runat="server" StartValue="0" EndValue="249" Size="10" BackgroundColor="#3AB54B">

Using a string from the behind code?

Deepaa Pragaasam [Syncfusion]
Replied On December 12, 2015 12:53 AM

Hi Cory,
Thanks for contacting Syncfusion Support
We have analyzed your queries
Query 1: How to set the Pointers value in code behind
To set the Pointer Value, we can use the instance of the circular gauge as shown below
Code example:
[ASP.NET CS]


Query 2: How Would I set the end value from code behind
The end value in the circular range is of type double and it is set in the below way
Code Example:
[ASP.NET CS]

Screenshot:



We have attached the sample below for your reference
Sample Link: http://www.syncfusion.com/downloads/support/forum/121417/ze/Webapplication-1798515544
 
Please let us know if you have any concerns
Regards,
Deepaa

Cory Wynn
Replied On December 14, 2015 11:21 AM

Hi Deepaa,

Thanks for your help, I've got it working.

Kind regards,
Cory

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.

;