how to programmatically open / close dtDateTime?

how to programmatically open / close dtDateTime?

riixriix Posts: 13Questions: 7Answers: 0
edited May 6 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: 54,909Questions: 1Answers: 8,606 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: 12,939Questions: 0Answers: 2,204

    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

Sign In or Register to comment.