[CLOSED] DatePicker has invalid selected date when switching months

  1. #1

    [CLOSED] DatePicker has invalid selected date when switching months

    When switching months, the selected date is not cleared. It should either set the selected date as previous date with the new month or clear it from the UI. Currently, if you have July 16th selected and you switch month to August, it will have August 16th selected. DatePicker.getValue() will say July 16th though.

    <%@ 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>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Slate" ScriptMode="Debug" />
        <ext:DatePicker runat="server" ID="picker">
        </ext:DatePicker>
        <ext:Button runat="server" Text="Get Value" OnClientClick="#{txtValue}.setValue(#{picker}.getValue());">
        </ext:Button>
        <ext:TextField runat="server" ID="txtValue">
        </ext:TextField>
        </form>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Jul 20, 2010 at 5:19 AM.
  2. #2
    Hi,

    Fixed it in SVN. Now selection is clear if current selected value is not presented in the month. Interesting that it is designed behaviour (2.3.0 version contains the same behaviour)

Similar Threads

  1. [OPEN] [#172] datePicker: show two months
    By supera in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 15, 2013, 11:07 AM
  2. DatePicker: get Min Date and Max Date just displayed
    By Journeyman79 in forum 1.x Help
    Replies: 0
    Last Post: Mar 16, 2011, 10:41 AM
  3. Replies: 2
    Last Post: Jan 07, 2010, 11:18 AM
  4. [CLOSED] DatePicker selected date
    By methode in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 29, 2008, 12:05 PM
  5. Replies: 8
    Last Post: Jun 06, 2008, 1:28 AM

Posting Permissions