toni Posted July 2, 2020 Share Posted July 2, 2020 Is it possible to change first day of week in TUnimDatePicker? Link to comment Share on other sites More sharing options...
Mehmet Emin Posted July 2, 2020 Share Posted July 2, 2020 uses uniDateTimePicker, unimDatePicker, uniGUIInterfaces, ..... var IPicker: IUniDateTimePicker; begin IPicker := UnimDatePicker1; IPicker.FirstDayOfWeek := TCalDayOfWeek.dowFriday; Link to comment Share on other sites More sharing options...
toni Posted July 3, 2020 Author Share Posted July 3, 2020 I'm sorry but doesn't work. Nothing happens Link to comment Share on other sites More sharing options...
Sherzod Posted July 3, 2020 Share Posted July 3, 2020 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 More sharing options...
toni Posted July 6, 2020 Author Share Posted July 6, 2020 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 More sharing options...
Sherzod Posted July 6, 2020 Share Posted July 6, 2020 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 More sharing options...
toni Posted July 10, 2020 Author Share Posted July 10, 2020 dayofweek.rar Here you've an example Link to comment Share on other sites More sharing options...
Sherzod Posted July 10, 2020 Share Posted July 10, 2020 9 minutes ago, toni said: Here you've an example Sorry, how do you check, how can we reproduce? Link to comment Share on other sites More sharing options...
toni Posted July 10, 2020 Author Share Posted July 10, 2020 if you click in the UnimDatePicker the first day is not Monday is Sunday Link to comment Share on other sites More sharing options...
Sherzod Posted July 10, 2020 Share Posted July 10, 2020 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? Link to comment Share on other sites More sharing options...
toni Posted July 10, 2020 Author Share Posted July 10, 2020 Yes, or in mobile too Link to comment Share on other sites More sharing options...
toni Posted July 10, 2020 Author Share Posted July 10, 2020 Link to comment Share on other sites More sharing options...
toni Posted July 13, 2020 Author Share Posted July 13, 2020 any solution ? Link to comment Share on other sites More sharing options...
Sherzod Posted July 13, 2020 Share Posted July 13, 2020 5 hours ago, toni said: any solution ? Do you mean that does not change here?: Link to comment Share on other sites More sharing options...
toni Posted July 13, 2020 Author Share Posted July 13, 2020 Can you tell me, how to do this? With my example doesn't work Link to comment Share on other sites More sharing options...
toni Posted July 13, 2020 Author Share Posted July 13, 2020 but today is monday 13 of july, and with your calendar is tuesday 13 of july. I don't understand Link to comment Share on other sites More sharing options...
Sherzod Posted July 13, 2020 Share Posted July 13, 2020 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?: Link to comment Share on other sites More sharing options...
toni Posted July 13, 2020 Author Share Posted July 13, 2020 In your example 13 is not tuesday is monday, it's wrong The titles are the only has changed Link to comment Share on other sites More sharing options...
Sherzod Posted July 15, 2020 Share Posted July 15, 2020 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 More sharing options...
toni Posted July 17, 2020 Author Share Posted July 17, 2020 if there is no solution. I'll have to program a calendar. Please any solution ? Link to comment Share on other sites More sharing options...
toni Posted July 22, 2020 Author Share Posted July 22, 2020 ? Link to comment Share on other sites More sharing options...
Sherzod Posted July 24, 2020 Share Posted July 24, 2020 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 More sharing options...
Sherzod Posted July 24, 2020 Share Posted July 24, 2020 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() } } })); } 1 Link to comment Share on other sites More sharing options...
toni Posted July 25, 2020 Author Share Posted July 25, 2020 Perfect. This has save me a lot of time. Thanks a lot. 1 Link to comment Share on other sites More sharing options...
Recommended Posts