fraxzi Posted May 16, 2023 Share Posted May 16, 2023 Hello @Sherzod, I tried this: ... if Self.Components[i].ClassType = TUniDBDateTimePicker then with TUniDBDateTimePicker(Self.Components[i]) do if ClearButton then with JSInterface do begin JSAddListener('afterrender', 'function(cmp){cmp.getTrigger("clear").hide()}'); JSAddListener('focus', 'function(cmp){if (cmp.getValue()!="") cmp.getTrigger("clear").show()}'); JSAddListener('blur', 'function(cmp){cmp.getTrigger("clear").hide()}'); JSAddListener('dirtychange', 'function(cmp){cmp.getTrigger("clear").hide()}'); //<-------- end; ... But got this: I would like to implement "dirtychange" for the field with "ClearButton = True" is this possible with DateTimePicker? Thanks, Frances Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2023 Share Posted May 16, 2023 Hello @fraxzi Well datetimepicker is a container, you need to work with date, time objects. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2023 Share Posted May 16, 2023 58 minutes ago, fraxzi said: is this possible with DateTimePicker? 36 minutes ago, Sherzod said: Well datetimepicker is a container, you need to work with date, time objects. Something like this: 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.