Mar 25, 2013, 10:38 AM
[CLOSED] gridpanel date localization problem (razor)
Hi there,
I'm having the problem that a date in a gridpanel (which is in a popup window) isn't showed
in the right format (de-DE). I tried to set the locale in the resourcemanager like that
What's the way to ensure the correct culture ???
Perhaps in the web.config ? But what exactly ?
I also tried
I don't get it .......
Any help ?
Regards,
Holger
I'm having the problem that a date in a gridpanel (which is in a popup window) isn't showed
in the right format (de-DE). I tried to set the locale in the resourcemanager like that
@Html.X().ResourceManager().Theme(Theme.Gray).ScriptMode(Ext.Net.ScriptMode.Debug).Locale("de")
but the date is showed in english.What's the way to ensure the correct culture ???
Perhaps in the web.config ? But what exactly ?
I also tried
new ModelField("EX_DATE", ModelFieldType.Date, "M/d hh:mmtt")
The result is, that the date isn't displayed in the column of the gridpanel.I don't get it .......
Any help ?
Regards,
Holger
.Items(witems => {
witems.Add(
Html.X().GridPanel()
.ID("gridPanel_EX_Exportlauf")
.Width(550)
.Height(470)
.ForceFit(true)
.SelectionModel(sm =>
{
sm.Add(
Html.X().RowSelectionModel()
.SelectedRows(sr => { sr.Add(Html.X().SelectedRow().RowIndex(0)); }
)
);
})
.Store(
Html.X().Store()
.PageSize(100)
.Buffered(true)
.Model(
Html.X().Model()
.Fields(
new ModelField("EX_RD", ModelFieldType.Int),
new ModelField("EX_ID", ModelFieldType.Int),
new ModelField("EX_DATE", ModelFieldType.Date)
)
)
.DataSource(Model)
)
.ColumnModel(
Html.X().Column().Text("RDBereich").DataIndex("EX_RD"),
Html.X().Column().Text("Exportlauf ID").DataIndex("EX_ID"),
Html.X().Column().Text("Datum Export").DataIndex("EX_DATE"),
Html.X().Column().Text("RDB").DataIndex("ES_RD_BEREICH")
)
.DirectEvents(de =>
{
de.ItemDblClick.Url = Url.Action("DirectEventExportlaufClicked");
de.ItemDblClick.EventMask.ShowMask = true;
de.ItemDblClick.ExtraParams.Add(new Parameter("EX_ID", "record.get('EX_ID')", ParameterMode.Raw));
})
);
Last edited by Daniil; Mar 25, 2013 at 3:32 PM.
Reason: [CLOSED]