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

[Solved] No Method IndexOf when filtering DateTime Column

6 Answers 61 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.
Dominick DeStasio
Top achievements
Rank 1
Dominick DeStasio asked on 22 Aug 2011, 03:44 PM
Hello, 

I'm getting a JavaScript error when I try to filter a datetime column using the latest 2011_2_712 version of the MVC grid control. The exact error is Uncaught TypeError: Object Wed Aug 17 2011 00:00:00 GMT-0400 (Eastern Daylight Time) has no method 'indexOf'.
How do I correct this? 

Thanks in advance.

6 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 22 Aug 2011, 03:50 PM
Hi Dominick Destasio,

This is a known issue which has been already addressed. Please download the latest internal build for your account.

Regards,
Rosen
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Dominick DeStasio
Top achievements
Rank 1
answered on 22 Aug 2011, 06:24 PM
The link you posted for latest internal build was broken. Where do I find the build you're talking about? 
0
Dominick DeStasio
Top achievements
Rank 1
answered on 22 Aug 2011, 06:25 PM
Sorry, I found it. Thanks.
0
Dominick DeStasio
Top achievements
Rank 1
answered on 23 Aug 2011, 04:00 PM
Unfortunately, although the latest internal build fixes the error with filtering a date, it breaks a number of other things. 

1) After deleting a row from the grid, the grid data does not correctly refresh itself. A hard refresh on the page makes the grid data update, but this is no good.

2) I have a grid on one page that is declared as <%= Html.Telerik().Grid<GridModelType>() ... which loads its data from a different controller than the one running that view. Before updating to the internal build, this worked just fine. 

I realize that it is not optimal and could be rafactored, however that doesn't change the fact that it did work and now doesn't with the internal build. I actually started refactoring it out into it's own partial view with its own model until I realized that the referesh on delete was also not working correctly.

Thanks, 

Dominick
0
Rosen
Telerik team
answered on 23 Aug 2011, 04:08 PM
Hi Dominick Destasio,

Could you please provide a small sample which demonstrates this issue? Meanwhile could you please verify that you have correctly upgraded your project as shown in this help article.

Greetings,
Rosen
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Dominick DeStasio
Top achievements
Rank 1
answered on 23 Aug 2011, 04:57 PM
It turned out that I needed to update the scripts folder that the script registrar was pointed to. For some reason after the updated I had to specify the folder named after the actual telerik version number whereas before I just had it pointed to my js folder. 
Tags
Grid
Asked by
Dominick DeStasio
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Dominick DeStasio
Top achievements
Rank 1
Share this question
or