Larsmoll Posted October 28, 2008 Report Share Posted October 28, 2008 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 :-)) Quote Link to comment Share on other sites More sharing options...
Frank Posted November 3, 2008 Report Share Posted November 3, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.