Hello vladsch,
Another problem with my test cases:
Example.aspx:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DateField1.SelectedDate = DateTime.Now;
TimeField1.SelectedTime = new TimeSpan(15, 0, 0);
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = TimeField1.SelectedTime.ToString();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Example</title>
</head>
<body>
<form id="form1" runat="server">
<ExtJS:ScriptManager ID="ScriptManager" runat="server" />
<asp:Label ID="Label1" runat="server" Text="Click Button" />
<ExtJS:DateField ID="DateField1" runat="server" />
<ExtJS:TimeField ID="TimeField1" runat="server" />
<ExtJS:Button ID="Button1" runat="server" AutoPostBack="true" onclick="Button1_Click" Text="Button" />
</form>
</body>
</html>
Replication steps:
1. Load page
2. Change date to March 1st, 2010
3. Change time from 3:00 pm to 11:45 pm
4. Click Button
5. Notice the output and the drop down still say 3:00 pm but the date maintains March 1st, 2010
Let me know when corrected and I will retest.
Cheers,
Timothy
----
Timothy Grant Vogelsang
tvogelsang [at] esolutionsgroup [dot] ca
Project Manager / Senior Software Developer
Microsoft .NET Framework 3.5
Coolite Toolkit 1.0