Page 1 of 1

JQDateTimePicker not rendering

PostPosted: 21 Nov 2013 17:04
by fcoalvarado
I'm using a TIWCGJQDateTimePicker in a IWRegion to let the user select a
date. I set its date in IWAppFormCreate but the date is not showing in
the component. When I click in it the date is already selected and I
need to click the ok button to show the date.
How can I make the component show the date?
Best Regards.

Re: JQDateTimePicker not rendering

PostPosted: 21 Nov 2013 17:20
by Alexander Bulei
Hi fcoalvarado,

fcoalvarado wrote:I'm using a TIWCGJQDateTimePicker in a IWRegion to let the user select a
date. I set its date in IWAppFormCreate but the date is not showing in
the component. When I click in it the date is already selected and I
need to click the ok button to show the date.
How can I make the component show the date?
Best Regards.


What property do you use?

delphi code
IWCGJQDateTimePicker1.DateTime:= now;


Work as expected.

Best Regards.

Re: JQDateTimePicker not rendering

PostPosted: 21 Nov 2013 18:17
by fcoalvarado
I'm just using the date part
IWCGJQDateTimePicker1.Date:= Date;

Re: JQDateTimePicker not rendering

PostPosted: 21 Nov 2013 18:59
by Jorge Sousa
Hi fcoalvarado

With TIWCGJQDateTimePicker you have to use DateTime property

property Date is acessible because TIWCGJQDateTimePicker is descendant from TIWCGJQDatePicker.

We added getter / setter for property Date to use DateTime:= DateOf(Value)

Regards