This is a migrated thread and some comments may be shown as answers.

[Solved] Raw data with Everlive DataSource

3 Answers 121 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
jmillar
Top achievements
Rank 1
jmillar asked on 20 Nov 2014, 07:44 PM
Hi there;

I'm trying to get at the raw data returned by an Everlive datasource (specifically, so that I can update values in a radial gauge), but when I look at the <datasource>.data.length property it always returns 0 and there doesn't seem to be any contents.  Am I doing something wrong?  What type of data should I expect .data() to return?

Thanks,
Jason

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 24 Nov 2014, 02:42 PM
Hello Jason,

Do you call the dataSource fetch() method in order to read the data from the Everlive back services? If you do not fetch() the data then the length will always be 0. Please check the following example that shows a non-working/working example

http://dojo.telerik.com/ajIPE

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
jmillar
Top achievements
Rank 1
answered on 24 Nov 2014, 04:42 PM
Thanks Kiril;

I was calling read() and not fetch(), but basically the same thing.  Since I'm new to the framework, I think what was tripping me up was not appreciating the fact that the Everlive calls are asynchronous....my handler was immediately after the read() call instead of being provided as a callback.  Once I switch to a callback, everything worked fine.

Thanks,
Jason
0
Kiril Nikolov
Telerik team
answered on 25 Nov 2014, 11:47 AM
Hello Jason,

And this is why it works with fetch() method that provides the callback. I am happy to hear that you got it working, in case you have any further questions, please do not hesitate to contact us.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Data Source
Asked by
jmillar
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
jmillar
Top achievements
Rank 1
Share this question
or