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

Disappear rad html charts

2 Answers 149 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
waruni
Top achievements
Rank 1
waruni asked on 19 Dec 2012, 07:53 AM

Hi,

I have an issue on rad html chart; I have a page with rad html pie charts (more than one) inside the rad grid. In grid we have button to select the line and will click on that display the rad pop up window.
 
My issue is when opening that rad window main page rad html pie charts are disappearing. After I close that rad window and refresh page, it will load correctly.
 
need an answer as soon as possible

cheers
Waruni

2 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 20 Dec 2012, 12:17 PM
Hello,

Indeed RadHtmlChart does not load the DataSource from ViewState after postback which is a bug we have already detected and logged in PITS here. It seems that in your case when you click Grid's button a postback is performed and therefore the chart's datasource is lost.

I would advise that you avoid this postback when opening the RadWindow, since it can be used entirely on the client. You can check the following resources on the matter:
http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html
http://www.telerik.com/help/aspnet-ajax/window-programming-radwindow-methods.html
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

If this is not an option in your case you can use the workaround from PITS (manually save/read your data in the ViewState in order to avoid multiple database requests).

All the best,
the Telerik team 

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
waruni
Top achievements
Rank 1
answered on 02 Jan 2013, 05:34 AM
Hi,

Thank you for the reply and i was managed with the 3rd link - http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

cheers,
Waruni
Tags
Chart (HTML5)
Asked by
waruni
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
waruni
Top achievements
Rank 1
Share this question
or