Alessandro Posted January 13, 2016 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
Sherzod Posted January 13, 2016 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
Sherzod Posted January 13, 2016 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
Alessandro Posted January 13, 2016 Author Posted January 13, 2016 Wonder. Thank you! I´m your fan! 1 Quote
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.