Jump to content
Software FX Community

Keeping current state of the charts


fomur

Recommended Posts

 Hi,

 I am working on a export funtionality where I am trying to find all the chartfx objects with iterating the controls under a content page and exporting them as PNG files. Everything was working all fine until I transferred my code to a seperate assembly and added it as a dll to the bin folder of my website after compiling it. Right now, export functionality is still working, however, it does not reflect whatever shown on the page but rather shows default state of the chartfx objects which kills whole purpose of exporting. Any ideas to export these chartfx objects using a seperate assembly without losing the changes that are made to them? Thanks...

Link to comment
Share on other sites

The dll from which you export the chart should not have any effect. My guess is that the difference comes not from where you are making this call from but when, when as in when in the page cycle. Make sure the call to export is done after the ViewState has been loaded and all your customization code in your page has executed.

Link to comment
Share on other sites

 Hi Frank, I have worked on this issue at weekend and when I am reading your reply now it makes more sense. I believe you are right at your point. I discovered that if page is postback then the chart exports works fine. However, if i trigger a callback from an ASP.NET control which updates charts (meanwhile, all the charts are inside an updatepanel) then exported charts reflects only most recent postback changes but not this callback changes. So, why does asp.net callbacks do not effect any change on exports? Or If I enable and use ChartFX AJAX implementation, by using their callback implementation, would it work? Thanks.

 

Link to comment
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.

×
×
  • Create New...