Sign in to follow this  
Sagar Joshi

Problem With Export Button With Partial Postback

Recommended Posts

Hello,

 

I am using Export functionality of chart.

In that when I first bind chart (With partial Postback) and Click on export button it shows "Waiting" button and when Export Gets completed it changes to "Save".

 

But when I bind chart again (with partial Postback), and click on Export button and Export gets completed, it does not change "Waiting" button to "Save".

 

Any workaround for this?

 

Thanking in advance.

Share this post


Link to post
Share on other sites

Hello,

 

As per your reply, I have attached demo application.

In that when you load

http://localhost:xxxx/fusionchart/default.aspx

 

There will be one Button called "Load Chart"

When you click on that it will load a chart.

 

Than another button will appear there called "Save as Image".

By clicking on that, it will show button for "Waiting for Export",

 

Once export is done it will get changed to "Save the Chart".

 

Now again follow the same process ==> Click on Load chart ==> click on Save as Image

 

that "Waiting for Export" will not get changed to "Save the chart"

 

 

Can you Provide me help to solve this?

 

 

-- Sagar Joshi

FC_DemoApp.zip

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Sagar,

 

Apologies for the delayed response.

 

You would need to reset the "fcexpDiv".

 

To reset the Export Handler div, you would need to create a javascript function in the Default.aspx page.

 

Please refer the following code:

 

Ref. Code:

 function FC_Exported() {
           document.getElementById("fcexpDiv").innerHTML = "";

       }

 

You would need call the innerHTML property on the "fcexpDiv" and set it equal to blank.

 

For more information, please refer the following link:

http://docs.fusioncharts.com/charts/contents/?JavaScript/API/Events.html

 

 

Please find attached modified illustration.

 

Hope this helps!

FC_DemoApp.zip

Share this post


Link to post
Share on other sites

Hello,

 

I tried it but it is also not working properly.

 

It works fine when it is loaded first time but when I load chart again, and click on Save as Image button , it does not change "Waiting" button to "Save".

 

So problem is still there.

 

Is there any solution for this?

Share this post


Link to post
Share on other sites

Hello,

 

It has been long time that i have not found any solution for this.

And solution provide above has not solved my problem.

So issue is still there.

 

Is there any way to solve this?

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Sagar,

 

In the sample, you would need to use dispose function to remove the existing DOM id of FusionChartsExportObject i.e., "fcBatchExporter" in Default.aspx page.

 

Ref. Code:

  if (FusionCharts("fcBatchExporter")) {
                FusionCharts("fcBatchExporter").dispose();
  }
 
Please find attached modified sample for your reference.
 
Hope this helps!
 

mod_FC_DemoApp.zip

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