[FIXED] [0.8.3] TimeField Bug (New)
Coolite Toolkit Version 0.8.2 now available for DOWNLOAD | See also Examples Explorer | Version 1.0 available Q1 2010
 

Coolite Forums

Welcome Guest ( Login | Register )
 
[FIXED] [0.8.3] TimeField Bug (New)
Subscribe
Last Login: Today @ 4:09:30 AM
Posts: 1,158,
Posted 1/31/2010 11:45:40 AM

Group: Coolite Premium Member & Early Adopter
Hello vladsch,

If you run the following example you will notice an inconsistency with the TimeField:

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(9, 0, 0);
        }
    }
   
</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" />
        <ExtJS:TabPanel ID="TabPanel1" runat="server" AutoPostBack="true" DeferredRender="true">
            <Tabs>
                <ExtJS:Tab ID="Tab1" runat="server" Title="Tab 1">
                    <Body>
                        Tab 1
                    </Body>
                </ExtJS:Tab>
                <ExtJS:Tab ID="Tab2" runat="server" Title="Tab 2">
                    <Body>
                        <ExtJS:DateField ID="DateField1" runat="server" />
                        <ExtJS:TimeField ID="TimeField1" runat="server" />
                    </Body>
                </ExtJS:Tab>
            </Tabs>
        </ExtJS:TabPanel>
    </form>
</body>
</html>


Replication steps:

1. Load page
2. Click Tab 2
3. Notice that it says 9:00 pm and not 9:00 am like the TimeSpan suggests?

Let me know when you have something to check from SVN.

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] esolutionsgroup [dot] ca
Project Manager / Senior Software Developer
Microsoft .NET Framework 3.5
Coolite Toolkit 1.0

Last Login: Today @ 4:09:30 AM
Posts: 1,158,
Posted 1/31/2010 12:17:20 PM

Group: Coolite Premium Member & Early Adopter
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

Last Login: Today @ 4:33:52 AM
Posts: 6,191,
Posted 1/31/2010 12:39:13 PM

Group: Core Development Team
Hi,

Fixed. Please update 

--
Vladimir Shcheglov
Coolite Inc.
Development Team
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: Today @ 4:09:30 AM
Posts: 1,158,
Posted 1/31/2010 1:39:06 PM

Group: Coolite Premium Member & Early Adopter
Works, thanks vladsch!


----
Timothy Grant Vogelsang
tvogelsang [at] esolutionsgroup [dot] ca
Project Manager / Senior Software Developer
Microsoft .NET Framework 3.5
Coolite Toolkit 1.0

Last Login: Today @ 4:09:30 AM
Posts: 1,158,
Posted 2/2/2010 7:29:39 AM

Group: Coolite Premium Member & Early Adopter
vladsch,

Can you check on your end that the following example works?


<%@ 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>


I'm still getting 3:00 PM when I submit the page back and I have the latest build from SVN.

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] esolutionsgroup [dot] ca
Project Manager / Senior Software Developer
Microsoft .NET Framework 3.5
Coolite Toolkit 1.0

Last Login: Today @ 4:09:30 AM
Posts: 1,158,
Posted 2/2/2010 11:25:03 AM

Group: Coolite Premium Member & Early Adopter
Hello,

I'm just bumping this one, I have a pissed off client and need someone to confirm whether it is still a problem or not

Thanks again!

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] esolutionsgroup [dot] ca
Project Manager / Senior Software Developer
Microsoft .NET Framework 3.5
Coolite Toolkit 1.0

Last Login: Today @ 4:33:52 AM
Posts: 6,191,
Posted 2/2/2010 11:45:27 AM

Group: Core Development Team
Hi Timothy,

Fixed. Please update

--
Vladimir Shcheglov
Coolite Inc.
Development Team
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: Today @ 4:09:30 AM
Posts: 1,158,
Posted 2/6/2010 7:47:16 AM

Group: Coolite Premium Member & Early Adopter
Worked thanks vladsch

Cheers


----
Timothy Grant Vogelsang
tvogelsang [at] esolutionsgroup [dot] ca
Project Manager / Senior Software Developer
Microsoft .NET Framework 3.5
Coolite Toolkit 1.0

Last Login: 3/3/2010 6:26:11 AM
Posts: 448,
Posted 2/18/2010 8:53:44 PM

Group: Coolite Early Adopter
 there's a v.0.8.3 now?
Last Login: Today @ 12:13:10 AM
Posts: 3,963,
Posted 2/18/2010 10:23:33 PM

Group: Core Development Team
[WP]joju (2/18/2010)
 there's a v.0.8.3 now?

The lastest SVN build is considered v0.8.3, which will be the next maintenance release of v0.8.x.

--
Geoffrey McGill
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 4:39am