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

[Solved] Date format when using dynamic object with ajax binding

1 Answer 97 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.
Deyan
Top achievements
Rank 1
Deyan asked on 13 Apr 2011, 03:13 PM
Hello,

We are trying to format datetime column when used with anonymous object, but the following doesn't work:

@(Html.Telerik().Grid<dynamic>().Name("Grid")
    .DataBinding(binding => binding.Ajax().Select("LoadData", "Home"))
    .Columns(columns =>
        {
            columns.Bound("Name").Width("200px");
            columns.Bound("Birth").Format("{0:d}");
        }
))

The format property on the birth column is ignored and the result look like: Tue May 3 00:00:00 UTC+0300 2011

Thank you!

1 Answer, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 1
answered on 03 Jun 2011, 06:26 PM
I'm having the exact same issue.  Let me know if you find a solution.
Tags
Grid
Asked by
Deyan
Top achievements
Rank 1
Answers by
Jason
Top achievements
Rank 1
Share this question
or