Jump to content

Recommended Posts

Posted

Hi,

 

How does enter the field has DateTimePicker/ DBDateTimePicker, the component automatically drop down is open,
without having to click the arrow?
Also, when you click any button, the component TUniDateTimePicker or TUniDBDateTimePicker open dorpdown?
 
Thanks
 
 
Posted

Hi,

 

* Also, when you click any button, the component TUniDateTimePicker or TUniDBDateTimePicker open dorpdown?

 

You can use this:

 

"Show":

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniSession.AddJS(UniDateTimePicker1.JSName + '.expand()');
end;

"Hide":

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniSession.AddJS(UniDateTimePicker1.JSName + '.collapse()');
end;

Best regards.

  • Upvote 1
Posted

*

How does enter the field has DateTimePicker/ DBDateTimePicker, the component automatically drop down is open,
without having to click the arrow?
 
If I understand correctly you,
try:
 
UniDateTimePicker1 -> ClientEvents -> ExtEvents ... [Ext.form.field.Date] add focus fn:
function focus(sender, the, eOpts)
{
  sender.expand()
}

Best regards.

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...