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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

EJ2: Trying to dynamically set the value of the pointer in linear gauge

Thread ID:





140829 Nov 8,2018 08:22 PM UTC Nov 12,2018 09:08 AM UTC ASP.NET MVC - EJ 2 3
Tags: LinearGauge
David Jamison
Asked On November 8, 2018 08:22 PM UTC

Here's the code:

        gauge.setPointerValue(0, 0, Number);

I see the value change on the javascript object but it does not change the pointer position.

Any ideas?


Dave Jamison

Dharanidharan Dharmasivam [Syncfusion]
Replied On November 9, 2018 09:08 AM UTC

Hi Dave, 
Greetings from Syncfusion, 
We have analyzed your query with the provided code snippet. You are using the refresh method after the setPointerValue method. In the setPointerValue method, you can pass the axis index, pointer index, and pointer value as parameters and with this method itself, the gauge will refresh with provided parameters, so there is no need to call the refresh method. But if you call the refresh method after the setPointerValue method, gauge refresh with present API’s in the sample level. If you want to change any instance of gauge, you can change and refresh by calling the refresh method. Otherwise, while using the public method like setPointerValue, you no need call the refresh method. 
Please find the below code snippet to achieve this requirement, 
         0, // AxisIndex 
         0, // Pointer Index 
         pointerValue // Pointer Value 
Sample your reference, can be found from below link, 
Kindly revert us, if you have any concerns. 

Padmini Ramamurthy [Syncfusion]
Replied On November 10, 2018 04:55 AM UTC

From: Jamison, David S CTR (US)
Sent: Friday, November 9, 2018 5:25 PM
To: Syncfusion Support <support@syncfusion.com>
Subject: RE: [Non-DoD Source] Syncfusion support community forum 140829, EJ2: Trying to dynamically set the value of the pointer in linear gauge, has been updated. 

Thanks, that's what I needed. 
Dave Jamison 

Dharanidharan Dharmasivam [Syncfusion]
Replied On November 12, 2018 09:08 AM UTC

Hi Dave, 
Most welcome. Kindly revert us if you need any further assistance. 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon