Hello,
I have a grid that display a date. The controller send to the grid the dates in the right format 'dd/mm/yyyy hh:mm:ss' but the grid displays dates such as 'Sun, 09 Mar 2008 16:05:07 GMT 0200 (Romance Daylight Time)'. Is it possible to set the default format in french without reformating the data?
PS: i set the culture in french.
I have a client template which is loading with two values :
How can i send the dates with the format 'dd/mm/yyyy hh:mm:ss' to server?
I have a grid that display a date. The controller send to the grid the dates in the right format 'dd/mm/yyyy hh:mm:ss' but the grid displays dates such as 'Sun, 09 Mar 2008 16:05:07 GMT 0200 (Romance Daylight Time)'. Is it possible to set the default format in french without reformating the data?
PS: i set the culture in french.
@(Html.Kendo().Grid<Scan>(Model)
.Name(
"grid_Time_"
+ ViewData[
"ID"
])
.Columns(columns =>
{
columns.Bound(e => e.Timestamp).Title(
"Date"
).Width(150).Format(
"{0:dd/MM/yyyy hh:mm:ss}"
);
columns.Bound(e => e.GatewayID).Width(20);
})
.Sortable()
.Pageable()
.ClientDetailTemplateId(
"template2"
)
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(30)
.Model(model =>
{
model.Id(d => d.GatewayID);
})
)
.Events(events => events.DataBound(
"dataBound"
))
)
I have a client template which is loading with two values :
.Read(read => read.Action(
"ReadScannedMeterByGateway"
,
"Flottes"
,
new
{ Id =
"#=GatewayID#"
,Timestamp=
"#=Timestamp#"
}))