Jump to content
Software FX Community

How to make ChartFX to a User Control


Recommended Posts

Can I use ChartFX inside user control?

how to raise postback from chart_click to the parent page?

i'm writing in C# language

I'm using ChartFX inside User Control

(User Control have 1 Panel and 2 controls inside it, ChartFX and Label so I'm implement IPostBackEventHandler to User Control and make Panel and Chart to raise postback when click) and I generate it at runtime like dynamic control while in page_load then i'm add event handler to it.

the problem is:

In parent page i have listbox to select something then when user push the button on parent page it will postback and generate user control to display graph which is selected by user then first time load. I test it by clicking on some point of series 0 i got warning from IE like "Object Expected" but if I click on somewhere else (in panel) it can raise postback correctly then if I click the point of series 0 again it can raise postback correct too.

please help, I get stuck for more 2 days

you can see what happen in attach file

StatClass.cs is contain the Event structure

DefaultGraph.ascx is user control

GraphView.aspx is Page that create user control dynamically

sorry i can not attach file to the post i will attach it later

thanks for your advance

Link to comment
Share on other sites

  • 4 weeks later...

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.

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...