Jump to content

FirstDayOfWeek


toni

Recommended Posts

18 hours ago, toni said:

Is it possible to change first day of week in TUnimDatePicker?

Hello,

Do you use a mobile application to the desktop?

UnimDatePicker.ClientEvents.ExtEvents ->

function painted(sender, eOpts)
{
    if (typeof sender.getPicker().setStartDay === 'function') {
        sender.getPicker().setStartDay(1); // Monday
    }
}

 

Link to comment
Share on other sites

It  doesn't work.too. 

I use UnimDatePicker.Picker := dptFloated because user must choose new timing for the job, and the only way I Know is to show a calendar to choose the day 

the dptEdge is not operative for this ussue

Link to comment
Share on other sites

58 minutes ago, toni said:

It  doesn't work.too. 

I use UnimDatePicker.Picker := dptFloated because user must choose new timing for the job, and the only way I Know is to show a calendar to choose the day 

the dptEdge is not operative for this ussue

Please make a simple testcase. And tell us how to check it.

Link to comment
Share on other sites

26 minutes ago, toni said:

but today is monday 13 of july, and with your calendar is tuesday 13 of july.

I don't understand 

 

4 hours ago, Sherzod said:

Do you mean that does not change here?:

  getPicker.png.c71aacc854f8a899e3565e3fe3c1bad3.png

 

Link to comment
Share on other sites

On 7/14/2020 at 12:30 AM, toni said:

In your example 13 is not tuesday is monday, it's wrong

The titles are the only has changed

Hello,

Sorry, I meant the same thing.

Perhaps this is an ExtJS bug, I'm looking for a solution.

Link to comment
Share on other sites

On 7/17/2020 at 2:31 PM, toni said:

if there is no solution. I'll have to program a calendar. Please any solution ? 

Hello,

DateField calls createPicker() once at the first "expand". Many further changes will not affect the datepicker.

I will try to find a workaround.

Link to comment
Share on other sites

Can you try to use this approach?

function painted(sender, eOpts)
{
    var me=sender;
    me.setFloatedPicker(Ext.create('Ext.panel.Date', {
        startDay: 1, 
        autoConfirm: true, 
        listeners: {
            select: function() {
                me.setValue(arguments[1]); 
                me.collapse()
            }
        }
    }));
}

 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...