Jump to content

Recommended Posts

Posted

uses

uniDateTimePicker, unimDatePicker, uniGUIInterfaces, 

.....

 

var IPicker: IUniDateTimePicker;

begin

IPicker := UnimDatePicker1;
IPicker.FirstDayOfWeek := TCalDayOfWeek.dowFriday;

Posted
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
    }
}

 

Posted

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

Posted
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.

Posted
Just now, toni said:

if you click in the UnimDatePicker the first day is not Monday is Sunday

OK, 

How do I check? On a desktop browser?

Posted
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

 

Posted
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.

Posted
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.

Posted

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
×
×
  • Create New...