Jump to content

[SOLVED] TUniDateTimePicker / TUniDBDateTimePicker open automatic


Alessandro

Recommended Posts

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
 
 
Link to comment
Share on other sites

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
Link to comment
Share on other sites

*

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
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...