how to programmatically open / close dtDateTime?

how to programmatically open / close dtDateTime?

riixriix Posts: 13Questions: 7Answers: 0
edited May 2021 in DateTime

I have a new page that has a dtDateTime. To make this page look like rest of site, I need to have a litle calendar icon next to the textbox, clicking on it would open the datetime (rest of site using jquery-ui datetpicker).
How to programatically show / hide? And are there on-show / on-hide events?

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    We have a method to hide the instance, but not to show it.

    However, you could just trigger a focus event on the input that it is attached to which would cause it to appear.

    There are no corresponding events yet I'm afraid.

    Allan

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    Is this with Editor? Or is the DateTime field being used in isolation? If you could link to your page or create a test case, that would help understand your issue. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.