ice Posted June 21, 2016 Posted June 21, 2016 Hi, it is possible to Calendar single day to disable ? Thanks Quote
Sherzod Posted June 21, 2016 Posted June 21, 2016 Hi, Sorry, can you clarify your question?! Best regards. Quote
ice Posted June 21, 2016 Author Posted June 21, 2016 Hi, sorry about that english. The user can only click sundays and the other days not. All days are visible. Quote
ice Posted June 22, 2016 Author Posted June 22, 2016 Hi, i found it in sencha-doc. Datefield, disableddays :[0,6] but it does not work ? can you help me ? Quote
Sherzod Posted June 22, 2016 Posted June 22, 2016 Hi, Try: UniCalendar1->ClientEvents->UniEvents->[Ext.picker.Date[picker]] ... picker.beforeInit fn function picker.beforeInit(sender, config) { config.disabledDays = [1,2,3,4,5,6] } Best regards. Quote
ice Posted June 22, 2016 Author Posted June 22, 2016 hi, a new question about unicalendar how work setdisableddays() on runtime? Quote
Sherzod Posted June 22, 2016 Posted June 22, 2016 Try: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSession.AddJS(UniCalendar1.JSName + '.down("datepicker").setDisabledDays([1,5])'); end; Quote
elGringo Posted March 20, 2017 Posted March 20, 2017 Very useful forum! And how to disable some date? for example disable 20.03.2017 ? Quote
Sherzod Posted March 20, 2017 Posted March 20, 2017 Hi, Very useful forum! And how to disable some date? for example disable 20.03.2017 ? One possible solution: UniSession.AddJS(UniDateTimePicker1.JSName + '.setDisabledDates([''20/03/2017'', ''28.03.2017''])'); Best regards. Quote
elGringo Posted March 20, 2017 Posted March 20, 2017 and the last here) disable enable datetimepicker days in runtime? I'm doing delivery days with possible denied days for celebrations. see pic I need admin to choose dates of delivery that possble and then client will choose one of them, except celebrations Quote
elGringo Posted March 20, 2017 Posted March 20, 2017 or I can simply use calendar and example above, but with picker imho more convenient Quote
Sherzod Posted March 20, 2017 Posted March 20, 2017 For picker: UniSession.AddJS(UniDateTimePicker1.JSName + '.setDisabledDays([1,5])'); 2 Quote
elGringo Posted March 23, 2017 Posted March 23, 2017 trying to disable number of dates in 2 ways. In Cycle doesn't work - disables only 1-st date - why??? Need this variant as main. In StringList dates prepared like 20/03/2017 27/03/2017 As a result i can disable only 1 date ( from all I need // 1-st way - works fine but !!! can't build such array UniSession.AddJS(DateTimePicker.JSName + '.setDisabledDates([''20.03.2017'', ''27.03.2017''])'); // 2-d way - disables only first date for i := 0 to SomeStringList.Count-1 do begin Sleep(100); UniSession.AddJS(DateTimePicker.JSName + '.setDisabledDates(['''+SomeStringList.[i]+'''])'); end; Quote
elGringo Posted March 23, 2017 Posted March 23, 2017 Solved it! for i := 0 to lbDisabledDeliveryDates.Count-1 do begin if i=0 then s:=#39+lbDisabledDeliveryDates.Items[i]+#39 else s:=s+','+#39+lbDisabledDeliveryDates.Items[i]+#39; end; UniSession.AddJS(DateTimePicker.JSName + '.setDisabledDates(['+s+'])'); 2 Quote
elGringo Posted April 10, 2017 Posted April 10, 2017 Hello, how to disable all dates before today, and including today? It is impossible to get all dates from past to array Quote
Sherzod Posted April 10, 2017 Posted April 10, 2017 Hi, Can help you, try: http://forums.unigui.com/index.php?/topic/3744-unidatetimepicker-maxdate-mindate/&do=findComment&comment=17904 Best regards. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.