Sign in to follow this  
MavStar

Support for ASP.Net AJAX UpdatePanel

Recommended Posts

I love the fusion chart.

BUT i would really REALLY love for it to support simple MS Ajax Updatepanels.  Because quite frankly i really don't want to learn javascript!

If someone has a simple work around i would dearly love to hear about it

MavStar

Share this post


Link to post
Share on other sites

Hey All,

Well i've come up with an easy solution to the updatepanel problem.

There is a free flash control on http://www.flash-control.net/


Protected Sub CreateChart()
Dim QueryString As String = String.Format("../xml/GetAccountsXml.aspx?UserName={0}&QueryType={1}", User.Identity.Name, GraphType.SelectedValue)
Dim dataURL As String = InfoSoftGlobal.FusionCharts.EncodeDataURL(QueryString, True)
Me.FlashControl1.Height = 350
Me.FlashControl1.Width = 900
Me.FlashControl1.BorderColor = Drawing.Color.WhiteSmoke
Me.FlashControl1.BackColor = Drawing.Color.WhiteSmoke
Me.FlashControl1.Menu = False
Me.FlashControl1.MovieUrl = "../FusionCharts/Line.swf"
Me.FlashControl1.SwLiveConnect = True
Me.FlashControl1.FlashVars = String.Format("&chartWidth={0}&chartHeight={1}&debugMode={2}&dataURL={3}", 900, 350, 0, dataURL)
End Sub

This is working brilliantly for me, plus it is free.

The only minor glitch is that it has that whole "click to activate thing" happening (control must be using html to render the chart)

I'd still prefer to use a official FusionChart control, but hey time is money and i've spent enough time on this problem already.

Hope you have fun.

MavStar

 

Loving VB.Net

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this