Mar 13, 2014, 10:57 AM
[CLOSED] Datefield / German error
Hi
Please have a look at this demo. Pre-requisit: The language has to be a german one, where March is like M?rz. The error only occurs when I select M?rz, every other Month without the ? has no problem at all. Is this a framework error?
Please have a look at this demo. Pre-requisit: The language has to be a german one, where March is like M?rz. The error only occurs when I select M?rz, every other Month without the ? has no problem at all. Is this a framework error?
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
}
}
[DirectMethod]
public void submitDate()
{
System.Data.SqlTypes.SqlDateTime dt = X.GetCmp<DateField>("dfTest", new DateField.Config() { Format = "MMM yyyy" }).SelectedDate;
X.Msg.Alert("Date submited", dt.ToString()).Show();
}
</script>
<!DOCTYPE html>
<html>
<head id="Head" runat="server">
<title></title>
</head>
<body>
<form id="Form" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="de-CH" />
<ext:DateField runat="server" ID="dfTest" AllowBlank="false" FieldLabel="Date" EmptyText = "required" Format = "MMM yyyy" Type="Month"></ext:DateField>
<ext:Button runat="server" Text="Submit" OnClientClick="App.direct.submitDate()"></ext:Button>
</form>
</body>
</html>
thank you and best regards
Last edited by Daniil; Mar 14, 2014 at 10:51 AM.
Reason: [CLOSED]