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

Error: h.indexOf is not a function Source File: http://localintranet.swan.ac.uk/Clearing/Scripts/2011.2.712/telerik.grid.filtering.min.js Line: 1

8 Answers 81 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.
Robert Saddler
Top achievements
Rank 1
Robert Saddler asked on 10 Aug 2011, 01:12 PM
Hi,

I get this javascript error when trying to filter on a date column.  All other columns filter fine.  Here is the view grid definition of the offending column.  I initially suspected that the problem was something to do with the format but even removing it completely did not resolve the issue?

            columns.Bound(o => o.Received)
                .Format("{0:dd/MM/yy HH:mm}")

Thanks,

Rob.

8 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 11 Aug 2011, 08:18 AM
Hi Robert Saddler,

 This is a known issue which has already been addressed. Please, refer to this forum thread where you can download a build which address this issue.

Best wishes,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Robert Saddler
Top achievements
Rank 1
answered on 11 Aug 2011, 10:31 AM
Great, thanks.

When will this be available through NuGet?

Regards,

Rob.
0
Rosen
Telerik team
answered on 11 Aug 2011, 10:59 AM
Hi Robert Saddler,

I'm afraid not. This been an internal build is not an official release thus it is not available through NuGet.

Regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Robert Saddler
Top achievements
Rank 1
answered on 11 Aug 2011, 11:02 AM
Great thanks - when will the next official build for MVC Extensions drop please?
0
Rosen
Telerik team
answered on 11 Aug 2011, 03:04 PM
Hi Robert Saddler,

Unfortunately, there is no firm date when the next official release of the suite will be release. Most probably the next non internal release will be Q2 2011 SP1 somewhere in September, however it will be available only for commercial license as mentioned here.

All the best,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Gregoryy
Top achievements
Rank 1
answered on 13 Aug 2011, 01:10 AM
  • After update. I get recurse file not version 2011.2.725 at 2011.2.692.;
  • Filter date still doesn't work. I input date, but nothing return;
0
Rosen
Telerik team
answered on 15 Aug 2011, 07:44 AM
Hello Gregoryy,

Could you please verify that you have correctly upgraded to the later version? More information on how to upgrade can be found here.

Regards,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Jayesh
Top achievements
Rank 1
answered on 20 Feb 2013, 11:28 AM
This is known issue there is no any proper solution given for this issue.
I have solved this issue. you have to change two telerik's JavaScript file for solving this issue.

1. telerik.grid.filtering.min.js
2. telerik.common.min.js

For easy readability and changing code you can beautify min version of JS file to it's full version.
you can use http://jsbeautifier.org site to beautify min version js file.

In telerik.grid.filtering.min.js file you have to change following lines of code:
In filterExpr function replace below line with new lines highlighted in BOLD.

h.push(new b.stringBuilder().cat(k.member).cat("~").cat(i.operator).cat("~").cat(this.encodeFilterValue(k, i.value)).string());

 if (k.type == "Date") {
                            h.push(new b.stringBuilder().cat(k.member).cat("~").cat(i.operator).cat("~").cat(this.encodeFilterValue(k, $.telerik.formatString('{0:dd-MM-yyyy}', i.value))).string())
                        }
                        else {
                            h.push(new b.stringBuilder().cat(k.member).cat("~").cat(i.operator).cat("~").cat(this.encodeFilterValue(k, i.value)).string());
                        }


In telerik.common.min.js file you have to add following line:
In parseMachineDate function add new line(highlighted in BOLD.) before below line.

var aY = ax.substr(aO).match(a0);

ax = $.telerik.formatString('{0:dd-MM-yyyy}', ax)

Enjoy....

Thanks,
Jayesh Ginoya


Tags
Grid
Asked by
Robert Saddler
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Robert Saddler
Top achievements
Rank 1
Gregoryy
Top achievements
Rank 1
Jayesh
Top achievements
Rank 1
Share this question
or