PDA

View Full Version : [CLOSED] Ext.net v2 Beta release: DateField don┬┤t accepts input date.



supera
Mar 20, 2012, 5:08 PM
After update with Beta version, the datefield don┤t accepts a typed input date...

Please, fill the datefield with 04/11/1976 (dd/MM/yyyy), for example...

This works fine in DP1.



<%@ Page Language="vb" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager ID="resManagerDividas" runat="server" Locale="pt-BR" />
<form id="form1" runat="server">
<ext:DateField runat="server" ID="dtDataCobranca" LabelAlign="Top" FieldLabel="Data de Cobranša" AltFormats="d/m/Y|j/n/Y|j/n/y|j/m/y|d/n/y|j/m/Y|d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|d-m-Y" Format="dd/MM/yyyy" X="415" Y="55" Width="120px" />
</form>
</body>
</html>

Vladimir
Mar 20, 2012, 5:35 PM
I tested with latest code and all works correctly
Please update from SVN and retest

supera
Mar 20, 2012, 6:41 PM
Hi Vladimir...

Don't works...

1 - The problem occurs when I insert dates with keybord...
2 - I insert dates in portuguese format (day-month-year)...
3 - If I insert date in english format, works...
4 - I wish, if possible, when I input date, the mask appears. Now, the date is format after control lost focus.

Thanks for any help.

Vladimir
Mar 20, 2012, 6:44 PM
Please post exactly string which you insert to the field

supera
Mar 20, 2012, 7:40 PM
I typed '04111976'. The date is in brazilian portuguese format (dd/MM/yyyy)

04 = day
11 = month (november)
1976=year

3972

Vladimir
Mar 20, 2012, 7:51 PM
Please note that AltFormats should use .NET date specifiers (like Format property)
Therefore AltFormats should contain the following format


ddMMyyyy

supera
Mar 20, 2012, 8:06 PM
Hi Vladimir!

Works fine...

Thanks a lot!