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

[Solved] Bug in 2011.2.712 telerik.grid.js with IE8

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pieter
Top achievements
Rank 1
Pieter asked on 16 Aug 2011, 09:01 AM
After updating to the latest telerik version, some grids stopped working in IE8. I got a jscript error saying that the operation was not supported.
As the problem didn't manifest itself in every grid, I didn't understand the problem, but I finally traced the source of the problem to line 600 in telerik.grid.js. There I found this:
_transformParams: function (data) {
    var that = this,
        remoteOperations = that._isServerOperation();
    params = {},
        filter = $.isFunction(that.filterExpr) ? that.filterExpr() : "";

The problem turned out to be the semicolon on the third line. IE8 didn't consider the subsequent statement to be initialization statements of variables. Replacing the semicolon with a comma resolved the problem. The code that works for me reads:
_transformParams: function (data) {
    var that = this,
        remoteOperations = that._isServerOperation(),
    params = {},
        filter = $.isFunction(that.filterExpr) ? that.filterExpr() : "";

I hope this fix will quickly find its way to the next release.

2 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 23 Aug 2011, 01:11 AM
Had the exact same problem with IE8. This fixes it. Thank you!
0
Pieter
Top achievements
Rank 1
answered on 20 Sep 2011, 10:02 AM
I haven't tested it yet, but it seems to be fixed in 2011-2-914.
The link in the forum only contains the minified version of the scripts, so it's hard to check.
Tags
Grid
Asked by
Pieter
Top achievements
Rank 1
Answers by
Rob
Top achievements
Rank 1
Pieter
Top achievements
Rank 1
Share this question
or