-
5 Apr 2011 1:38 PM #1
[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
});
}
-
5 Apr 2011 2:28 PM #2
Fixed, thanks for the report.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
12 Jan 2012 3:42 AM #3
-
26 Jun 2012 2:27 AM #4
ExtJS 4.1 - problem still present
-
26 Jun 2012 3:29 AM #5
Please post a test case:
Code:Ext.onReady(function(){ Ext.create('Ext.picker.Date', { renderTo: document.body, startDay: 3 }) });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
26 Jun 2012 4:09 AM #6
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 }) });
-
26 Jun 2012 4:20 AM #7
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!
-
26 Jun 2012 4:35 AM #8
OK, thanks for the clarification.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-EXTJSIV-588][Beta] Loader problem with scripts:true
By no1 in forum Ext:BugsReplies: 1Last Post: 2 Apr 2011, 10:15 PM -
[FIXED-EXTJSIV-564][ExtJS 4 - BETA 1] Bug in Ext.selection.Model
By mrdanger in forum Ext:BugsReplies: 1Last Post: 31 Mar 2011, 3:01 PM -
[FIXED-EXTJSIV-561][Beta 1] TabPanel Items [ null ] when items empty
By mrh0057 in forum Ext:BugsReplies: 0Last Post: 31 Mar 2011, 3:15 AM -
[OPEN-EXTJSIV-466] Message Box ignores cls
By James Goddard in forum Ext:BugsReplies: 1Last Post: 30 Mar 2011, 4:37 AM -
[FIXED-434][3.1.1-beta] ArrayReader ignores successProperty value
By extjs@peacetech.com in forum Ext 3.x: BugsReplies: 2Last Post: 20 Jan 2010, 10:50 AM


Reply With Quote