One of the fields in vew_AccountLogin is "mod_date" which, in our CMS, is the date that the login record was last modified (e.g. by customer service personnel or the account administrator). Before upgrading to 2011.1.315, we had no problems.
Now, when I go to delete or update someone, my controller is never called, because I get a javascript error in MicrosoftAjax.debug.js:
Uncaught Sys.ParameterCountException: Sys.ParameterCountException: Parameter count mismatch.
In this function, format = "undefined" and I don't think it's supposed to be:
- a: "EntityKey[EntityKeyValues][13][Value][format]"
- b: function Date$format(format) {
- arguments: Arguments[0]
- caller: function (a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}
- length: 1
- name: "Date$format"
- prototype: Date$format
- __proto__: function Empty() {}
Previous again:
- a: "EntityKey[EntityKeyValues][13][Value]"
- b: Mon Jul 11 2011 22:43:01 GMT-0500 (Central Daylight Time)
- __proto__: Date
- c: undefined
- e: function (a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}
- f: "format"
- this: DOMWindow
"format" is "undefined" - it shouldn't be. It never used to be. "b" above does not look correct. It should be in standard format, NOT javascript date format. Why was this changed? It is wreaking havoc all over my project. We hold a developer's license (Blue Earth Interactive) and I am not pleased in the least that this is occurring. Aren't you regression-testing before making new releases?
I am not able to send a sample project on here directly for this due to confidentiality, but I'll be happy to provide any information needed as this is easily reproducible, or I can e-mail the project directly, though you will not have any database access and I can't be responsible for creating a sandbox as I do not have the time.
Seems somewhat similar to:
http://www.telerik.com/community/forums/aspnet-mvc/grid/mvc-grid-ajax-update-delete-causes-datetimeformat-is-null-or-not-an-object.aspx
But the hotfix did not change anything - still get the same error.
Also, if I use MicrosoftAjax.js (not the .debug.js version), I receive:
Uncaught TypeError: Object [object DOMWindow] has no method '_toFormattedString'
This project is using MVC 2. Help!
11 Answers, 1 is accepted

e.g. if I have this model:
public class TestModel
{
public DateTime MyProperty {get; set;}
}
And I make a grid:
Html.Telerik.Grid<TestModel> ....
I get the same errors when it tries an AJAX POST (Delete or Update).
Finally, here is the data object being AJAX'ed. #b[13] (in bold) is the offending parameter that can't be formatted in 2011.1.315. I could technically set [XmlIgnore, ScriptIgnore] on this as a work-around, but that obviously wouldn't be acceptable in other areas of the site where we need mod_date.
- a: "EntityKey[EntityKeyValues]"
- b: Array[15]
- 0: Object
- Key: "login_id"
- Value: 92646
- __proto__: Object
- 1: Object
- Key: "username"
- Value: "ryantest711"
- __proto__: Object
- 2: Object
- Key: "password"
- Value: "6f1ed002ab5595859014ebf0951522d9"
- __proto__: Object
- 3: Object
- Key: "email"
- Value: "1@2.3"
- __proto__: Object
- 4: Object
- Key: "email_optout"
- Value: "N"
- __proto__: Object
- 5: Object
- Key: "password_is_temp"
- Value: "N"
- __proto__: Object
- 6: Object
- Key: "account_admin"
- Value: "N"
- __proto__: Object
- 7: Object
- Key: "allow_self_edit"
- Value: "Y"
- __proto__: Object
- 8: Object
- Key: "active"
- Value: "Y"
- __proto__: Object
- 9: Object
- Key: "restricted_user"
- Value: "N"
- __proto__: Object
- 10: Object
- Key: "deleted"
- Value: "N"
- __proto__: Object
- 11: Object
- Key: "mod_user_id"
- Value: 0
- __proto__: Object
- 12: Object
- Key: "mod_login_id"
- Value: 92646
- __proto__: Object
- 13: Object
- Key: "mod_date"
- Value: Mon Jul 11 2011 22:43:01 GMT-0500 (Central Daylight Time)
- __proto__: Object
- 14: Object
- Key: "isOwner"
- Value: 0
- __proto__: Object
- length: 15
- __proto__: Array[0]
- 0: Object
- c: undefined
- e: function (a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}
- f: undefined
- this: DOMWindow

This is not a known issue and we are not sure what may be causing it. I suggest you attach a runnable project to this forum thread so we can check what went wrong.
By the way all our editing demos are using a DateTime property without this problem.
Atanas Korchev
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

If the need arises, I can possibly provide VPN and read-only DB access to certain tables.
This did not occur prior to the upgrade to 2011.1.315, so it's definitely somehow related. It could be MicrosoftAjax.js being incompatible, an incompatible version of jQuery, or a Telerik incompatibility.

I am afraid we cannot help you unless we somehow reproduce the problem. Providing a sample project is the only possible way to do so.
Regards,Atanas Korchev
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!


http://www.telerik.com/community/forums/aspnet-mvc/grid/mvc-grid-ajax-update-delete-causes-datetimeformat-is-null-or-not-an-object.aspx
I cannot provide you with an email address. You can open a support ticket though. We can exchange private information there. To do so you should ask the owner of the commercial license to add you as a licensed developer from the Telerik web site.
On a side note you mentioned you are using 2011.1.315 which is not the latest official version of the Q1 2011 release. You can try upgrading to 2011.1 414 to see if the problem is resolved. The commercial license gives you access to service packs and internal hotfix builds. Once you are added as a licensed developer you would get access to those bits as well.
Atanas Korchev
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Thanks!

The error is indeed getting thrown in the MicrosoftAjax.cs.
Its happening when pressing update after doing a batch edit. If I put a breakpoint in the controller action that handles the batch editing, it doesn't get hit.
I'll try and create a solution where this error occurs and will attach it. It's a fairly simple client grid.