AJAXPanel and google interactive charts

Thread is closed for posting
2 posts, 0 answers
  1. chrisL
    chrisL avatar
    64 posts
    Member since:
    Dec 2005

    Posted 06 May 2014 Link to this post

    Hi there.

    How do I get the interactive google charts to work inside a rad ajax panel? I want to be able to post back the panel and update the data for the charts and have them redraw.

    Thanks in advance.
  2. Marin Bratanov
    Marin Bratanov avatar
    3555 posts

    Posted 09 May 2014 Link to this post

    Hello Chris,

    I am not sure which control you are referring to, yet here are some guidelines:

    • if this is a server control (e.g., RadChart or RadHtmlChart, or another third-party ASP control), you can initiate a postback and set its server data source. This will dispose and redraw the control like any other ASP control. There are various ways to initiate a postback, for example:
      • a click on a button inside the RadAjaxPanel
      • the __doPostBack() function from MS AJAX that can simulate the click on the button
      • the RadAjaxManager's client-side API and the ajaxRequest() method.
    • if this is a client-side widget - you do not need postbacks, but rather to explore its client-side API and provide its new datasource according to its requirements.
    • If you need to use such client-side API only after a certain postback, you can register a JavaScript function call from the code-behind when needed.

    I hope this helps.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top