ClickSeries - AsyncPostBackTrigger and/or ClienSide events

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Hermes
Newbie
Newbie
Posts: 33
Joined: Fri Feb 03, 2012 12:00 am

ClickSeries - AsyncPostBackTrigger and/or ClienSide events

Post by Hermes » Wed Feb 08, 2012 9:09 pm

Hello,

We are currently working on an application where events are handled through clienside events (javascript) generating an ajax call or with asynpostbacktriggers as the control's events don't generate changes on itself but yes on others. For example, if a clickseries on a chart generates changes on a control, let's say "Control2", Control2 is inside an UpdatePanel who would have an asyncpostbacktrigger associated with clickseries.

The problem we are having is that ClickSeries' handler cannot be used as an asyncpostbacktrigger because it does not follow the standard form: handler(object sender, EventArgs e), neither there is a client side alternative (or we weren't able to find it).

Any suggestion to accomplish this?

Thanks in advance.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ClickSeries - AsyncPostBackTrigger and/or ClienSide events

Post by Sandra » Fri Feb 10, 2012 12:15 pm

Hello Hermes,

Can you please send us your project,because we can reproduce it here and try to find a good solution for you?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Hermes
Newbie
Newbie
Posts: 33
Joined: Fri Feb 03, 2012 12:00 am

Re: ClickSeries - AsyncPostBackTrigger and/or ClienSide events

Post by Hermes » Mon Feb 13, 2012 5:28 pm

Sorry that I am not able to post my project here, but I will simplify the post in two more accurate questions:

- How can I use the Chart's ClickSeries event as an AsyncPostBackTrigger of an UpdatePanel?
- How can I handle the Chart's ClickSeries event without generating a postback? (just a javascript event)

Thanks!

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ClickSeries - AsyncPostBackTrigger and/or ClienSide events

Post by Sandra » Wed Feb 15, 2012 5:21 pm

Hello Hermes,


We have investigating your problem, we try to answer you asap.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: ClickSeries - AsyncPostBackTrigger and/or ClienSide events

Post by Marc » Fri Feb 17, 2012 1:29 pm

Hello,

I've attached a test page to this post that shows the asynchronous options open to the TeeChart WebChart in its current form. It may be that some aspect of your enquiry has escaped us but the example does try to show all the possible permutations. It shows how a trigger could be used to divert a call from a chart event.

With respect to calling clientside javascript: it is possible in a non-intelligent way as shown in the example but there is too the possiblity of outputting data from TeeChart to the clientpage that could be used as value-add data on the page itself (for example the data that is used to plot the chart). Note too that some extended pageside javascript techniques are available when using the Hotpsot tool to extend clientside javascript handling of point data when passing the mouse over a chart. See Tutorial 10 and the Customising Mouseover Mark example in the TeeChart for .NET example website project.

Please let us know if the example raises some more questions that are not well answered by the example itself.

With thanks.
Regards,
Marc Meumann
Attachments
TeeChartInUpdatePanel.zip
(4.7 KiB) Downloaded 435 times
Steema Support

Hermes
Newbie
Newbie
Posts: 33
Joined: Fri Feb 03, 2012 12:00 am

Re: ClickSeries - AsyncPostBackTrigger and/or ClienSide events

Post by Hermes » Wed Feb 22, 2012 11:45 am

Hi!

Thanks for the response, I will give it a try and come back to you in a few days.

Post Reply