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

Kendo bar chart resending the read request

1 Answer 63 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Nagaraj
Top achievements
Rank 1
Nagaraj asked on 06 Apr 2016, 04:49 AM

Hello sir,

     Is it possible to resend the read request to datasource on some select event? I can plot the graph properly once but now i want to change the datasource every time I choose something from the combobox. Also is it possible to send some parameters with the read request? If yes then how?

Will really appreciate if you could help me.

Thanks

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 08 Apr 2016, 06:07 AM
Hi,

You can use the chart dataSource read method to reload the data. You can pass additional data to the server with the read method:
function onChange() {
    var chart = $("#chart").getKendoChart();
    chart.dataSource.read({
        foo: this.value()
    });
}
or with the request data option.
 

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