Jump to content
Software FX Community
Bob

Using a PIE chart click to update a Barchart in an asp.net Update panel

Recommended Posts

Has any-one tried to put a Pie chart and a Bar chart on the same page and by clicking on a segment triggered the barchart to update in an asp.net update Panel.

The Pie chart generates a client side image map that you can specify the URL for each point. It sounds like the kind of thing using these charts and Ajax should be able to do.

Could I make each point.link.Url a call a javascript function with a paramter or 2 and 'trigger' the update panel that way?

Any pointers hints tips crazy ideas how this might be possible ?

 

Cheers Bob.

Share this post


Link to post
Share on other sites

I have prepared a sample for you. I believe it is what you are looking for. There are two charts on the page, a Pie and a Bar chart. The Bar chart is inside an UpdatePanel. On the Pie chart, I have linked every point to a JavaScript function. That function calls for a postback. The ASP.NET AJAX framework will intercept the postback and fire a partial postback instead. I hope it helps.

 Thank you,

Andre G.

Share this post


Link to post
Share on other sites

Thank you so much Andre ... your sample was gold to me .. saved me hours of drilling through blogs trying to piece all the relevant info together.

Think I'll go have a long lunch now that this tool will get finished on time ;-)

 Cheers Bob.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...