CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

JQDateTimePicker not rendering

by fcoalvarado » 21 Nov 2013 17:04

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.
fcoalvarado
 
Posts: 12
Joined: 14 Aug 2013 01:57

by Alexander Bulei » 21 Nov 2013 17:20

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.
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 fcoalvarado » 21 Nov 2013 18:17

I'm just using the date part
IWCGJQDateTimePicker1.Date:= Date;
fcoalvarado
 
Posts: 12
Joined: 14 Aug 2013 01:57

by Jorge Sousa » 21 Nov 2013 18:59

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQDatePicker

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.