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

[Solved] Chart "Failed" Error in IE7

3 Answers 53 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tom
Top achievements
Rank 1
Tom asked on 05 Jan 2012, 02:10 PM
At the company I work for I develop intranet applications for use in IE7, so using a different browser is out of the question.  The issue we are having is that one chart in the application throws an error, "Failed", when clicked. 

While we can do without an onClick action for this chart, the error seems to break some other javascript functionality on the page (cannot open a Telerik window, for example).  The strange part is, this error then seems to come up on every other page with a chart on it, even if the chart works perfectly in all other situations.

Here is the code for the chart:

@{
    Html.Telerik().Chart(Model.GridData)
    .Name("TrendChart")
    .Theme("WebBlue")
    .Title(title => title
        .Visible(false)
    )
    .Legend(legend => legend
        .Visible(false)
    )
    .SeriesDefaults(series =>
    {
        series.Line();
    })
    .Series(series =>
    {
        series.Column(o => o.GrossVolume).Name("Gross Volume");
    })
    .CategoryAxis(axis => axis
        .Categories(c => c.DateString)
        .Labels(labels => labels.Rotation(55))
        .MajorGridLines(mgl => mgl.Visible(false))
        .MinorTickSize(0)
        .MajorTickSize(0)
        .MinorGridLines(mgli => mgli.Visible(false))
    )
    .ValueAxis(axis => axis
        .Numeric()
        .MajorGridLines(mgl => mgl.Visible(false))
        .Min(0.0)
        .MinorTickSize(0)
        .MajorTickSize(0)
        .MinorGridLines(mgli => mgli.Visible(false))
    )
    .Tooltip(tooltip => tooltip
        .Visible(true)
    )
    .HtmlAttributes(new { style = "height: 400px;" })
    .Render();
}

I have tried eliminating other javascript files on the page to make sure there is no conflict, but the issue has not been resolved.  A copy of the error message received is attached, as well as how the chart is rendered following the error.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Tom
Top achievements
Rank 1
answered on 05 Jan 2012, 04:09 PM
Found the error. There was a javascript file referenced in another page that I did not see before.
0
Amos
Top achievements
Rank 1
answered on 05 Mar 2012, 11:08 PM
Can you describe what file it was/where/etc?  We are having the same issue and any direction would be appreciated.
0
Raechel
Top achievements
Rank 1
answered on 08 May 2012, 05:30 PM
Amos or Tom: We are experiencing similar symptoms in IE 7. Can you advise as to your exact solution?

Thanks,
R
Tags
Chart
Asked by
Tom
Top achievements
Rank 1
Answers by
Tom
Top achievements
Rank 1
Amos
Top achievements
Rank 1
Raechel
Top achievements
Rank 1
Share this question
or