Kendo bar chart resending the read request

2 posts, 0 answers
  1. Nagaraj
    Nagaraj avatar
    15 posts
    Member since:
    Jan 2015

    Posted 05 Apr Link to this post

    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

  2. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 08 Apr Link to this post

    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!
     
  3. UI for ASP.NET AJAX banner
Back to Top