Hello,
When connected to a DataSource the IWCGJQTimePicker shows 00:00 when field is empty. IWCGJQDatePicker behaves correctly and displays and empty edit... IWCGJQTimePicker should behave the same.
Thanks, Rick.
procedure TIWCGJQCustomTimePicker.DataLinkUpdateControl;
begin
Time:= TimeOf(DataLink.Field.AsDateTime)
end;
procedure TIWCGJQCustomTimePicker.DataLinkUpdateControl;
begin
if (DataLink.Field.IsNull) then
begin
FTimeIsNull := True; // New internal property
end
else
begin
Time:= TimeOf(DataLink.Field.AsDateTime);
FTimeIsNull := False;
end;
end;