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

Very Simple Qustion about binding

3 Answers 93 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Safak
Top achievements
Rank 1
Safak asked on 04 May 2012, 09:39 AM
 Hi to all :

All I need to learn is : Is that possible to make chart of a log which comes with separate sheet and updates itself every lets say 30 sec.?
If yes , can you please provide a example ?
lets say my log has these information and keeping in document named  " try.json"  (this file updates itself ever 30 sec.)


 [ { "year": "2000", "sales": 200 }, 
  { "year": "2001", "sales": 450 }, 
  { "year": "2002", "sales": 300 }, 
  { "year": "2003", "sales": 125 }
]

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 08 May 2012, 12:10 PM
Hi Safak,

You could achieve the described functionality using the DataViz refresh() method - this way you will be able to reload the data and repaint the chart in the needed interval. Please check this combined online example which illustrates similar functionality.  

 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Safak
Top achievements
Rank 1
answered on 08 May 2012, 12:27 PM
HI Nikolova , 

I already checked that example out  and also tired that reflesh() function. In that case my problem was this : 

I run my html(which has refresh button) file and created the graph it was cool , than I edited my try.json and changed some values and saved it .After this , I clicked on the refresh button to see new values but it didnt work ? What am I doing wrong?

Thanks for fast reply....
0
Iliana Dyankova
Telerik team
answered on 09 May 2012, 04:33 PM
Hello Safak,

This scenario looks completely valid and I am not sure what may cause the problem in your application. Please make sure that you hook up the refresh() function of the chart to the refresh button. In case this is correctly implemented, could you please provide a full runnable project that could be examined in details? This way I will be able to assist you further. 

Greetings,
Iliana Nikolova
the Telerik team
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
Safak
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Safak
Top achievements
Rank 1
Share this question
or