Jump to content
Software FX Community
User (Legacy)

Updating charts using .NET Control from client side.

Recommended Posts

I know I can use the Image renderer in conjunction with ajax (even the 

updatepanel control). However, is there any way to do this using the

activex control without doing a postback and reloading the entire page?

Thanks,

Adam

Share this post


Link to post
Share on other sites
Software FX    0

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?

--

Francisco Padron

www.chartfx.com

Share this post


Link to post
Share on other sites

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?

>

Share this post


Link to post
Share on other sites
Software FX    0

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

Share this post


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

>

Share this post


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

>>

>

>

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

>

Share this post


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

>>>

>>

>>

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

>>

Share this post


Link to post
Share on other sites
Software FX    0

You need to know the ID of the Chart control. If it is in a container it is 

probably being prepended something.

Do Chart1.UniqueID to obtain the ID.

--

Francisco Padron

www.chartfx.com

Share this post


Link to post
Share on other sites
russ_uk    0

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. 

Share this post


Link to post
Share on other sites
russ_uk    0

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

 

 

 

 

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

×