This question is locked. New answers and comments are not allowed.
Hi All,
I found a bug in the Telerik MVC Grid. I'm using Ajax binding grid, with inline editing. My datakeys are:
.DataKeys(keys => keys.Add(o => o.EntityKey).RouteKey("EntityKey"))
where EntityKey is a string and a Datetime composite key.
So when I hit the save changes button the [Bind(Prefix = "updated")]IEnumerable<T> updatedEtorls has a modelsate error, because of the second part of the key (the datetime part) is missing.
Here it is the sended data from Chrome developer tool:
But in the grid, in the model there is KEYPART2 value. Somehow the AJAX call negotiate the datetime value.
Here it is my view column binding:
columns.Bound(o => o.KEYPART2).Title("Key part 2").Format("{0:yyyy.MM.dd}").ReadOnly();
Please advice,
Lajos Marton
I found a bug in the Telerik MVC Grid. I'm using Ajax binding grid, with inline editing. My datakeys are:
.DataKeys(keys => keys.Add(o => o.EntityKey).RouteKey("EntityKey"))
where EntityKey is a string and a Datetime composite key.
So when I hit the save changes button the [Bind(Prefix = "updated")]IEnumerable<T> updatedEtorls has a modelsate error, because of the second part of the key (the datetime part) is missing.
Here it is the sended data from Chrome developer tool:
But in the grid, in the model there is KEYPART2 value. Somehow the AJAX call negotiate the datetime value.
Here it is my view column binding:
columns.Bound(o => o.KEYPART2).Title("Key part 2").Format("{0:yyyy.MM.dd}").ReadOnly();
Please advice,
Lajos Marton