jQuery UI Widgets Forums React React: Calendar in Filter Popup Issue

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 5 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • pratik.shah
    Participant

    Hello there,
    I have used calendar in filter popup of Jqxgrid.
    Steps to reproduce issue:
    ———————–
    1. Open Filter popup
    2. Open calendar present in filter popup
    3. Scroll down on table
    4. Filter gets closed but calendar is still open

    How can I make sure calendar is closed when filter popup is closed?


    Martin
    Participant

    Hello pratik.shah,

    You could use the columnmenuclosing callback property of jqxGrid for hiding the calendar, like this:

    columnmenuclosing: (menu, datafield, height) => {
        const calendars = document.getElementsByClassName('jqx-calendar');
        Array.prototype.forEach.call(calendars, (calendar: HTMLDivElement) => {
            calendar.style.display = 'none';
        });
        return true;
     }

    Best Regards,
    Martin

    jQWidgets Team
    https://www.jqwidgets.com/

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

You must be logged in to reply to this topic.