[FIXED] [#453] [2.x] Missed year in MonthPicker

Page 1 of 2 12 LastLast
  1. #1

    [FIXED] [#453] [2.x] Missed year in MonthPicker

    Hello,

    I see that the current year is missed in MonthPicker.

    Simple code
    <%@ Page Language="C#" AutoEventWireup="true" %>
    <%@ Import Namespace="System.Collections.Generic"%>
    <%@ 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 id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" CleanResourceUrl="true">
        </ext:ResourceManager>
    
        <form id="form1" runat="server">
            <ext:MonthPicker runat="server">
            </ext:MonthPicker>
        </form>
    </body>
    </html>
    Click image for larger version. 

Name:	monthpicker.png 
Views:	60 
Size:	3.7 KB 
ID:	8271
    Last edited by fabricio.murta; Apr 27, 2016 at 1:45 AM.
  2. #2
    It seems MonthPicker requires height (atleast, DateField set height for picker)
    Please set Height="199" for the picker
  3. #3
    This is a sencha bug.
    Another possible workaround is :

    .x-monthpicker-buttons {
        position: relative;
    }
    .x-datepicker .x-monthpicker-buttons {
        position: absolute;
    }
    this way, you do not have to set the height.
    It is important to keep the position absolute when the datepicker is inside a datefield.
    Have a nice day
  4. #4
    Vladimir, brunweb. Thank you for help
  5. #5
    Quote Originally Posted by brunweb View Post
    This is a sencha bug.
    Could you, please, post a link?
  6. #6
    Hi, here is the link :
    http://www.sencha.com/forum/showthre...bottom-cut-off
    The page says the bug is fixed, but appearently it isn't
    Have a nice day
  7. #7
    It should be fixed in ExtJS 4.2.2, but we use ExtJS 4.2.1 (the latest public release).

    I created an Issue to review in the future.
    https://github.com/extnet/Ext.NET/issues/453

    As for this fix
    Quote Originally Posted by brunweb View Post
    .x-monthpicker-buttons {
        position: relative;
    }
    .x-datepicker .x-monthpicker-buttons {
        position: absolute;
    }
    be careful, it appears to break this case:
    <ext:DateField runat="server" Type="Month" />
  8. #8
    Thank you, Daniil.

    I didn't know about Type="Month". Can you add some examples to the Example Explorer?

    Yury
  9. #9
    Thanks for the suggestion.

    It looks to be too little feature to have an individual sample. Or, maybe, you have some ideas how such an example could look, don't you?
  10. #10
    Daniil,

    I agree. It's a little feature. But it's ext.net feature and extjs doesn't have it as I know.
    And some users who use sencha documentation don't know about it.

    I think will be enough to add overview sample with this case.

    Yury
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: Aug 13, 2013, 3:52 PM
  2. [CLOSED] Can't resolve the ext:MonthPicker
    By KevinWinter in forum 2.x Help
    Replies: 2
    Last Post: Aug 13, 2013, 8:35 AM
  3. [CLOSED] FieldLabel property missed
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 30, 2012, 8:23 AM
  4. [CLOSED] store property RefreshAfterSaving missed
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 29, 2012, 7:06 PM
  5. Download MonthPicker Plugins
    By initial_b in forum 1.x Help
    Replies: 0
    Last Post: Aug 18, 2011, 11:12 AM

Posting Permissions