User (Legacy) Posted February 16, 2007 Report Share Posted February 16, 2007 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 Link to comment Share on other sites More sharing options...
Software FX Posted February 16, 2007 Report Share Posted February 16, 2007 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 Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 16, 2007 Author Report Share Posted February 16, 2007 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 More sharing options...
Software FX Posted February 16, 2007 Report Share Posted February 16, 2007 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 More sharing options...
User (Legacy) Posted February 19, 2007 Author Report Share Posted February 19, 2007 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 More sharing options...
User (Legacy) Posted February 19, 2007 Author Report Share Posted February 19, 2007 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 More sharing options...
User (Legacy) Posted February 19, 2007 Author Report Share Posted February 19, 2007 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 More sharing options...
Software FX Posted February 20, 2007 Report Share Posted February 20, 2007 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 Link to comment Share on other sites More sharing options...
russ_uk Posted September 14, 2007 Report Share Posted September 14, 2007 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 More sharing options...
Frank Posted September 14, 2007 Report Share Posted September 14, 2007 What is it exactly that you are looking for? The KB article referenced above (http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/765/1/001.htm?_r=1) contains sample code that shows how to access the chart from AJAX under various scenarios. Link to comment Share on other sites More sharing options...
russ_uk Posted September 14, 2007 Report Share Posted September 14, 2007 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 More sharing options...
Frank Posted September 15, 2007 Report Share Posted September 15, 2007 Please see my reply at: http://community.softwarefx.com/forums/t/8233.aspx Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.