Alessandro Posted January 13, 2016 Share Posted January 13, 2016 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2016 Share Posted January 13, 2016 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. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2016 Share Posted January 13, 2016 * 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. 1 Quote Link to comment Share on other sites More sharing options...
Alessandro Posted January 13, 2016 Author Share Posted January 13, 2016 Wonder. Thank you! I´m your fan! 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2016 Share Posted January 13, 2016 You are welcome and Thank you!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.