This question is locked. New answers and comments are not allowed.
Using version: 2011.1.414
Dear Telerik,
I have a ViewModel with a DateTime Field, called "UpdateDate".
In my Grid, I use server side and ajax databound (so the first time the grid is initialized the data will be serve from the server,
and on sorting will continue with ajax binding).
The data loads fine on the server binding, and my date format {0:MM.dd.yyyy}, works fine.
But when I press the header in one of the columns for sorting, the DateTime changes, ignores the format and shows the entire DateTime.
In your documentation I didn't see any regard to this case, saying Ajax doesn't support DateTime format.
Am I missing something in my understanding ?
Sincerely yours,
Ofer Levy
Dear Telerik,
I have a ViewModel with a DateTime Field, called "UpdateDate".
In my Grid, I use server side and ajax databound (so the first time the grid is initialized the data will be serve from the server,
and on sorting will continue with ajax binding).
The data loads fine on the server binding, and my date format {0:MM.dd.yyyy}, works fine.
But when I press the header in one of the columns for sorting, the DateTime changes, ignores the format and shows the entire DateTime.
Cols.Bound(Col => Col.UpdateDate) .Format("{0:MM.dd.yyyy}") .Title("UpdateDate") .Width("16%");}) .DataBinding(data => data.Ajax().Select("_Docs_AjaxBind", "Tik", new RouteValueDictionary { { "TikId", ViewData["TikId"] }, { "DocId", ViewData["DocId"] } })In your documentation I didn't see any regard to this case, saying Ajax doesn't support DateTime format.
Am I missing something in my understanding ?
Sincerely yours,
Ofer Levy