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

Date format when using custom client binding

1 Answer 47 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.
Tx3
Top achievements
Rank 1
Tx3 asked on 09 Mar 2012, 12:31 PM
I have a working custom binding, but when I try to do any kind of Date formatting I get always same date: 1.1.1970.

new GridColumnSettings
{
      Member = "BirthDate",
      Title = "Birth date",
      MemberType = typeof(DateTime),
      Format = "{0:d}"
}

I think I read from some older post that Format is only supported in the server binding. Is this the case? If yes then is there any workaround?

Thanks,
-Tatu

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 14 Mar 2012, 11:28 AM
Hi Tatu,

I am not sure what is exactly is going wrong on your side. I prepared a sample project which implements the same logic (Ajax bound Grid with columns loaded from GridColumnSettings collection).
Could you please check it and say if I missed something?

Regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Grid
Asked by
Tx3
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or