jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput jqxDateTimeInput Auto Open

This topic contains 3 replies, has 3 voices, and was last updated by  Dimitar 11 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxDateTimeInput Auto Open #25403

    jmrad
    Member

    Hi

    I need to have the DateTimeInput auto open on focus. Is it possible? If yes, how?

    jqxDateTimeInput Auto Open #25455

    Dimitar
    Participant

    Hello jmrad,

    Here is a sample code:

    $("#jqxDateTimeInput").jqxDateTimeInput({ width: '250px', height: '25px', theme: theme });
    $("#jqxDateTimeInput input").focus(function () {
    $("#jqxDateTimeInput").jqxDateTimeInput("open");
    });

    We hope it is helpful to you.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    jqxDateTimeInput Auto Open #52528

    serge012374
    Participant

    Hello! Is there a way to test if the jqxDateTimeInput is open? In the above scenario it would be good to open jqxDateTimeInput on focus if it’s closed, and close, if it’s open. I can listen to the open event of course, and set some variable, but I was wondering if it’s done internally already. Thank you! Sergey

    jqxDateTimeInput Auto Open #52548

    Dimitar
    Participant

    Hello Sergey,

    There is no such method for jqxDateTimeInput and we recommend you to follow your approach with a flag variable.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.