Telerik chart not loading correctly in new window (ajax issue?)

Posted by Phillip Schmidt on Stack Overflow See other posts from Stack Overflow or by Phillip Schmidt
Published on 2012-06-20T14:29:38Z Indexed on 2012/06/20 15:16 UTC
Read the original article Hit count: 211

Filed under:
|
|
|
|

I have a page which contains user controls with Telerik Charts (grids also, but they work fine). From this page, the user can click on a button to be redirected to a "Printer-Friendly Version" type page, which opens a new window via javascript and goes through a slightly different view (for formatting and stuff), but the telerik code is all the same.

The problem is, my Chart displays just fine in the original window, but the new window displays basically an empty chart with no data. This bug is only present in IE, and only applies to Charts. Grids work fine, for whatever reason. I'm thinking this is due to differences in script caching between browsers -- correct me if I'm wrong, I'm semi-new to client-directed web development.

Anyway I read somewhere that Telerik has issues with loading data and/or js files when loaded via ajax, so maybe that's the problem? If so, how could I get around this? And if not, any ideas on what could be causing this issue? It's causing me a great deal of frustration, since a print preview page seems like it should be the easiest of jobs.

Edit:

The charts are being rendered as html (if somebody can explain how to render them as images, that would be awesome). And dev tools shows basically the same thing between chrome and IE. Whenever my web service goes back up ill WinMerge them and look for any peculiarities/differences between them. In the mean time, though, the "render as an image" concept sounds promising. That way I could just save the image from the first page, and insert it right into the print preview page, right?. And since it's a print-preview page, it's not going to need to be interactive or anything, so that'd work out nicely.

Another (important) Edit:

These are probably the culprit...

Here are a few jQuery errors..but why?

And here is a little more detail on that:

not sure what <code>b</code> refers to, but it looks like it's the issue

And here is a side-by-side of it working(in chrome) and not working (in IE):

Looks like in IE it just isn't pulling any data

© Stack Overflow or respective owner

Related posts about c#

Related posts about AJAX