Page 2 of 2

Re: Ajax events control

PostPosted: 17 Jun 2014 18:05
by Jorge Sousa
Of course

With the suggested changes, appyled in the attached demo, it works as expected.

Re: Ajax events control

PostPosted: 18 Jun 2014 09:02
by assapan
Hi,
Sorry but it doesn't work , when the PB datepicker change the time is always 00:00 !
i am using IW14.0.31 with CGDevTools 2.1.0.3666

Re: Ajax events control

PostPosted: 18 Jun 2014 10:10
by Jorge Sousa
Hi

What do you mean by

when the PB datepicker change the time
?

Is it this?

DateTimePicker1.DateTime:= Now;

Since you're using Week names, your server must supply the exact names as the plugin, ie

DateTimeToStr(DateTime,GetFormatSettings)

where GetFormatSettings uses JQDatePickerOptions.DateFormat

Result:= FormatSettings;
Result.ShortDateFormat:= JQDatePickerOptions.DateFormat;
Result.LongDateFormat:= Result.ShortDateFormat;
Result.DateSeparator:= JQDatePickerOptions.DateSep;
Result.TwoDigitYearCenturyWindow:= 2;

Result.ShortTimeFormat:= JQTimeCustomLocal.TimeFormat;
Result.LongTimeFormat:= Result.ShortTimeFormat;
Result.TimeSeparator:= JQTimePickerOptions.TimeSep;

Re: Ajax events control

PostPosted: 18 Jun 2014 10:37
by assapan
When you change the OK datetimepicker , the label display the full date and time ( see datepickerOK image ) , but when the PB datetimepicker change only the date is displayed because time = 00:00 ( see datepickerPB image )

the label is filled with datetimetostr(datepickerPB.datetime)

Re: Ajax events control

PostPosted: 19 Jun 2014 11:15
by assapan
Hi,
I have upgraded to CGDevTools 2.1.0.3691 , it solves the onChange problem , thank you very much :)

Any idea about the DatePicker problem ?

Re: Ajax events control

PostPosted: 20 Jun 2014 10:20
by Jorge Sousa
DateTimePicker issue confirmed :/

But what we said before about CGCallbackDisable/Enable was causing another type of problems at loading

Re: Ajax events control

PostPosted: 20 Jun 2014 12:27
by assapan
Hi,
I have modified all my code to manage the disable/enable ajax , thanks .

For the datepicker , i am not hurry .

Thanks again for all