This is a migrated thread and some comments may be shown as answers.
Setting Linear Gaue value with data from Json web service
1 Answer 32 Views
This is a migrated thread and some comments may be shown as answers.
Ahmet Sertan
Top achievements
Rank 1
Ahmet Sertan asked on 15 Jun 2012, 11:16 AM
Hi,
I have a web service which returns a data table which has one column named "TEMPRITURE" and one row with its value.
I would like set Linear Gauge's value with the value from the web service.

I would be appreciated if somebody could provide sample code.

many thanks.

1 Answer, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 2
answered on 18 Jun 2012, 01:47 PM
Should be super simple...

...
success: function(data){
   $("#mygauge").data("kendoLinearGauge").value(data.TEMPRITURE);
}
...

You'd need to inspect the results for "data" in firebug or chome debugger to see what's available...I'm not sure what the JSON string is coming back.  Like if it's asp.net\asmx it might be data.d.TEMPRITURE...firebug it.

(Sidenote: I think perhaps there's a typo on "Temperature"?)
Asked by
Ahmet Sertan
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 2
Share this question
or