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

AJAXPanel and google interactive charts

1 Answer 14 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 07 May 2014, 04:16 AM
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.
Chris

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 09 May 2014, 10:11 AM

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.


Regards,

Marin Bratanov
Telerik
 

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.

 
Tags
Chart (Obsolete)
Asked by
Chris
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or