WebChart in System.Web.UI.ICallbackEventHandler enabled sit

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
marcoIpcos
Newbie
Newbie
Posts: 11
Joined: Mon Mar 23, 2009 12:00 am

WebChart in System.Web.UI.ICallbackEventHandler enabled sit

Post by marcoIpcos » Thu Aug 27, 2009 3:24 pm

I want to use the WebChart control in combination with a web page that implements the System.Web.UI.ICallbackEventHandler interface.
This to avoid page flickering when chart is refreshed (pre-load the chart before refresh the page).

Required for this is that the server callback method "public string GetCallbackResult()" returns:
- a string to the location where the image can be downloaded or
- a string from which the control can be regenerated.

I think returning a string where the chart control image can be downloaded is possible (example "SerieTypes as image"), but then I will loose my zoom functionality.
Does anyone know a solution for this case where I also can use a zoom on the chart??

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: WebChart in System.Web.UI.ICallbackEventHandler enabled sit

Post by Marc » Tue Sep 01, 2009 2:18 pm

Hello,

As you suggest, you could use ICallbackEventHandler to ask the Chart to create itself and return a string by which to call the generated Chart image. The attached project shows how that might be done. Although the approach has its uses I think it wouldn't be very practical to use with zoom. Zoom send a petition to the server on completion of zoom (mouseup), via a call to the page postback method. We'll take a look to see whether any variation on this could be offered for ICallbackEventHandler in a future version. For the moment an (Ajax) UpdatePanel might be the best way to isolate the Chart refresh from the rest of the page.

Regards,
Marc Meumann
Attachments
WebSiteCallback.zip
(3.76 KiB) Downloaded 345 times
Steema Support

Post Reply