The TWebDateTimePicker component seems to have some unexpected behavior when unbinding the ElementID.
Binding the element by assigning ElementID works correctly, but detaching it by assigning
ElementID := ‘‘ duplicates the element.
The problem could be avoidable by having the TWebDateTimePicker inside a <div> and using that for the binding, but since the component itself already creates a <div>, I don’t feel like that should be a necessary step.
In the attached demo the “< Bind >” button binds the control to either the first or second div, while the “Unset ID” button detaches the element as explained above.
The bottom example does the same thing but with a TWebEdit, for reference.
DateTimePicker Binding.zip (58.1 KB)