Jump to content
Software FX Community

How do I get all the javascript mm. with an object created in code


Larsmoll

Recommended Posts

Hello all!

I have a project where I create the chart in code (onlad event). I can work with the object and it renders with

RenderControl() command. It gives me an image map and a img tag with the usual aspx.  and a png format parameters. Looks fine.

 

But how do I get all of the other stuff/menu (javascript mm.) which I get if I create the chart using draganddrop. I guess there are som methods/properties I have to juggle with. But I can't find the right combination.

I want to start out with the stuff that is automatically created and then do my own adjustments to it. 

Any help would be much appreciated.

 

Lars

:-))

Link to comment
Share on other sites

Instead of calling render control, you must add the chart control to the page control tree at the appropriate time in the page lifecycle (CreateChildControls override). This way the chart can participate in all the stages of the page rendering cycle allowing it to inject scripts, style sheets to enable AJAX functionality.

Link to comment
Share on other sites

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.

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