This is a migrated thread and some comments may be shown as answers.

[Solved] No chart seried data first time

2 Answers 94 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 17 Apr 2009, 12:59 PM
I have a reasonably complicated setup with a chart on a control loaded on the fly according to this and that.

Now, the first time the asp.net postback occurs in order to render the chart, all the axes, title, legend etc draw fine. However, the chart series line does not appear, only the 'spinner'. I know the code to draw the line is being run.

On a subsequent postback (e.g. when the browser is resized and I explicitly set chart size), the line draws correctly.

Any ideas why the line should not appear first time?

thanks

2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 21 Apr 2009, 08:01 AM
Hello Matthew,

Unfortunately based on the provided information we are unable to reproduce the problematic behavior in our local tests. Please review the attached sample application that tries to follow your guidelines and let us know how we can observe the erroneous issue so we can advise you how to proceed.

Looking forward to your reply.


Regards,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matthew
Top achievements
Rank 1
answered on 21 Apr 2009, 12:13 PM
I have fixed it by adding a script to queue postback events.

Unfortunately that broke adding docks into a dockzone.
I fixed that by waiting for the postback completed evemt, and calling a 'resize' postback on that to cause the chart to draw.

Unfortunately all that broke the close dock/create dock. That is, if I closed I dock I could not create it again unless there was a postback in between.
I fixed that by setting the CommandsAutoPostBack property of the dock to true.

that was not fun
Tags
Chart (Obsolete)
Asked by
Matthew
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or