CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Problem about IWCGJQDATEPICKER

Questions & Answers about IWCGJQuery Suite.

by evanhm » 05 Apr 2016 09:23

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?
evanhm
 
Posts: 3
Joined: 05 Apr 2016 09:03

by Alexander Bulei » 05 Apr 2016 17:35

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by evanhm » 06 Apr 2016 06:48

thanks for your help!
evanhm
 
Posts: 3
Joined: 05 Apr 2016 09:03


Return to Q & A

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.