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

IE 8 client filtering issue

2 Answers 64 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
John Hunter
Top achievements
Rank 2
John Hunter asked on 19 Dec 2011, 10:07 PM
I have the following code to bind a chart to data. This code works in IE 9 and Firefox, but throws an error in IE 8. If i remove the second filter item, then it will work in IE 8.  Am I doing something incorrectly?

$("#otherEthnicityChart").kendoChart({
        theme: "metro",
        dataSource: {
            data: indicator14reportData,
            filter: [
                { field: "DataClass", operator: "eq", value: "OtherChart" },
                { field: "Agency", operator: ">", value: "E" },
            ],
        },
        title: {
            text: "Other"
        },
        legend: {
            position: "bottom"
        },
        seriesDefaults: {
            type: "column",
            stack: true
        },
        series: [
            {
                field: "HigherEducationPercent",
                name: "Higher Education",
                color: "#5084EA"
            },
            {
                field: "CompetitivelyEmployedPercent",
                name: "Competitively Employed",
                color: "red"
            },
            {
                field: "OtherEducationPercent",
                name: "Other Education",
                color: "green"
            },
            {
                field: "OtherEmploymentPercent",
                name: "Other Employment",
                color: "purple"
            },
            {
                field: "NotEngagedPercent",
                name: "Not Engaged",
                color: "#F2F471"
            }],
        tooltip: {
            visible: true
        },
        categoryAxis: {
            field: "Agency"
        },
        valueAxis: {
            max: 100,
            min: 0,
            labels: {
                format: "{0}%",
                max: 100
            }
        }
    });

2 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 20 Dec 2011, 07:37 AM
Hi John,

Earlier versions of IE are confused by comma after the last member in array/object definition. 

In your case, that would be

filter: [
                { field: "DataClass", operator: "eq", value: "OtherChart" },
                { field: "Agency", operator: ">", value: "E" },
            ]


Regards,

Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John Hunter
Top achievements
Rank 2
answered on 20 Dec 2011, 09:15 AM
Thanks, removing the trailing comma resolved the issue.
Tags
Data Source
Asked by
John Hunter
Top achievements
Rank 2
Answers by
Petyo
Telerik team
John Hunter
Top achievements
Rank 2
Share this question
or