Page 1 of 1

Problem about IWCGJQDATEPICKER

PostPosted: 05 Apr 2016 09:23
by evanhm
HOW TO USE IWCGJQDATEPICKER.DISABLEDDAYS?

procedure TIWForm2.IWCGJQComboBox4AsyncChange(Sender: TObject;
EventParams: TStringList);
begin
if iwcgjqcombobox4.itemindex > -1 then
begin
dateformat := 'yyyy-mm-dd';
IWCGJQDatePicker1.JQDatePickerOptions.DisabledDays.Days.Add('04-28');
end
end;

when i click datepicker, the day "2016-04-28" is not disabled

what's wrong?

Re: Problem about IWCGJQDATEPICKER

PostPosted: 05 Apr 2016 17:35
by Alexander Bulei
Hi evanhm,

IWCGJQComboBox4AsyncChange


You are changing in async event, and this property doesn't support async change, so you need call AjaxReRender.

Search in our forum about the AjaxReRender.

IWCGJQDatePicker1.JQDatePickerOptions.DisabledDays.Days.Add('04-28');


And should be :

IWCGJQDatePicker1.JQDatePickerOptions.DisabledDays.Days.Add('2016-04-28');


Since the dateformat is yyyy-mm-dd

Best Regards.

Re: Problem about IWCGJQDATEPICKER

PostPosted: 06 Apr 2016 06:48
by evanhm
thanks for your help!