Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member perfusorius's Avatar
    Join Date
    May 2010
    Location
    Berlin, Germany
    Posts
    3
    Vote Rating
    0
    perfusorius is on a distinguished road

      0  

    Default [FIXED-EXTJSIV-660][Beta 1] DatePicker ignores startDay

    [FIXED-EXTJSIV-660][Beta 1] DatePicker ignores startDay


    DatePicker is ignoring the value of startDay and always shows Sunday as start of week.
    I'm using the German locale (ext-lang-de.js, included AFTER ext-all.js) where startDay is configured as follows
    PHP Code:
        if(Ext.picker.Date){
            
    Ext.apply(Ext.picker.Date.prototype, {
                ..... ,
                
    startDay          1
            
    });
        } 

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,997
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Fixed, thanks for the report.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    5
    Vote Rating
    0
    bazis is on a distinguished road

      0  

    Default


    ExtJS 4.0.7 - problem still present

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Location
    Heidelberg, Germany
    Posts
    52
    Vote Rating
    1
    kleins is on a distinguished road

      0  

    Default


    ExtJS 4.1 - problem still present

  5. #5
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,997
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Please post a test case:

    Code:
    Ext.onReady(function(){
        Ext.create('Ext.picker.Date', {
            renderTo: document.body,
            startDay: 3
        })
    });
    Attached Images
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  6. #6
    Sencha User
    Join Date
    Jun 2009
    Location
    Heidelberg, Germany
    Posts
    52
    Vote Rating
    1
    kleins is on a distinguished road

      0  

    Default


    evant, thanks for the quick reply.
    The problem is with pre-setting a value for startDay, not setting it on a one-by-one basis. The german locale that the original poster referred to sets Ext.picker.Date.startDay to 1 which stays without effect. I worked out in the meantime that I need to set startDay for Ext.picker.Date and Ext.form.field.Date separately. I would expect the datefield to use the same setting as the datepicker by default. Otherwise the german locale (and possibly others) should include the setting for datefield.

    This is the code I would expect to work:

    Code:
    Ext.onReady(function(){
        Ext.picker.Date.prototype.startDay = 3;
        Ext.create('Ext.form.field.Date', {
            renderTo: document.body
        })
    });

  7. #7
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,997
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    The startDay is also defined on the field itself, so you'd need to set that as well.

    We're aware the locale files are in various states of being complete, so we're looking to address it in a more structured way.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  8. #8
    Sencha User
    Join Date
    Jun 2009
    Location
    Heidelberg, Germany
    Posts
    52
    Vote Rating
    1
    kleins is on a distinguished road

      0  

    Default


    OK, thanks for the clarification.

Similar Threads

  1. Replies: 1
    Last Post: 2 Apr 2011, 10:15 PM
  2. Replies: 1
    Last Post: 31 Mar 2011, 3:01 PM
  3. Replies: 0
    Last Post: 31 Mar 2011, 3:15 AM
  4. [OPEN-EXTJSIV-466] Message Box ignores cls
    By James Goddard in forum Ext:Bugs
    Replies: 1
    Last Post: 30 Mar 2011, 4:37 AM
  5. [FIXED-434][3.1.1-beta] ArrayReader ignores successProperty value
    By extjs@peacetech.com in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 20 Jan 2010, 10:50 AM

Thread Participants: 3

Tags for this Thread