Jump to content
Software FX Community

Updating charts using .NET Control from client side.


User (Legacy)

Recommended Posts

I have a series of CascadingDropDown controls which I would like to use 

to alter the dataset of the chart. Currently I use a PostBack which

reloads the entire page to update the chart data. I would like to be

able to do this without reloading the page, but retain usability of the

ActiveX control, rather than using Image rendering for the chart.

Screenshot attached as an example. I may also be changing some of the

dropdowns to listboxes in the future.

It was my understanding that in order to use callbacks I have to use

Image rendering mode. Is this true?

-Adam

Software FX wrote:

> You can send Chart FX events as Callbacks instead of PostBacks by

> setting: UseCallbacksForEvents to true.

>

> I don´t understand exactly what you want to do. What do you want to do

> via AJAX?

>

Link to comment
Share on other sites

The following article should get you what you need:

Q7651001. Chart FX for VS 2005 and AJAX

URL:

http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/765/1/001.htm?_r=1

In particular, take a look at UserCallback Event, you can hook a JavaScript

to your ComboBoxes and use this method to re-load the chart.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Thanks this looks helpful.  However I cant seem to get around this issue 

(see image):

-Adam

Software FX wrote:

> The following article should get you what you need:

>

>

> Q7651001. Chart FX for VS 2005 and AJAX

> URL:

> http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/765/1/001.htm?_r=1

>

>

> In particular, take a look at UserCallback Event, you can hook a

> JavaScript to your ComboBoxes and use this method to re-load the chart.

>

Link to comment
Share on other sites

After some testing, I noticed this happens only when using a 

Masterpage... not sure how to resolve it though.

-Adam

Adam Kunicki wrote:

> Thanks this looks helpful. However I cant seem to get around this issue

> (see image):

>

> -Adam

>

> Software FX wrote:

>> The following article should get you what you need:

>>

>>

>> Q7651001. Chart FX for VS 2005 and AJAX

>> URL:

>> http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/765/1/001.htm?_r=1

>>

>>

>> In particular, take a look at UserCallback Event, you can hook a

>> JavaScript to your ComboBoxes and use this method to re-load the chart.

>>

>

>

> ------------------------------------------------------------------------

>

Link to comment
Share on other sites

Found through research that this is caused by ASP generating new control 

ID´s when using masterpages and can be remedied using

<%=control.ControlID%> in the javascript calling client script. This

fixes it for controls such as textboxes, etc, however the problem still

persists with the ChartFX control.... so still no solution.

-Adam

Adam Kunicki wrote:

> After some testing, I noticed this happens only when using a

> Masterpage... not sure how to resolve it though.

>

> -Adam

>

> Adam Kunicki wrote:

>> Thanks this looks helpful. However I cant seem to get around this

>> issue (see image):

>>

>> -Adam

>>

>> Software FX wrote:

>>> The following article should get you what you need:

>>>

>>>

>>> Q7651001. Chart FX for VS 2005 and AJAX

>>> URL:

>>> http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/765/1/001.htm?_r=1

>>>

>>>

>>> In particular, take a look at UserCallback Event, you can hook a

>>> JavaScript to your ComboBoxes and use this method to re-load the chart.

>>>

>>

>>

>> ------------------------------------------------------------------------

>>

Link to comment
Share on other sites

  • 6 months later...

Hmm, I also have the same issue with ChartFX - I have been fighting now with ChartFX and the Ajax functionality for over a week.

Would it be possible to release a demo of ChartFX with one or two other controls on the page that say handle a couple of events?  Maybe then the development at Software FX will understand some of the issues with the control. 

Link to comment
Share on other sites

Hi Frank,

We have already reviewed the article and whilst it does give a few good pointers, the examples are still quite basic.  The main issues we experience are when the chart is created dynamically or with other controls in the tree rather than being a static single control on the page.

Another big issue with the Ajax implementation on ChartFX is the fact that the entire page is re-instantiated when a callback is made.  To me this defeats the point of Ajax as I want to make a single lightweight function call, not run through the entire page lifecycle, especially for the inbuilt functions such as Zoom.

Hopefully, we are just missing a part of the picture and it is possible for the zoom function to work without making a call back to the page.  Though we are still searching :)

Cheers

Russ

 

 

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...