jQuery UI Widgets Forums Editors Calendar Remove default current date selection

This topic contains 3 replies, has 2 voices, and was last updated by  ivailo 9 years, 5 months ago.

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

  • jqxfidqs
    Participant

    I see that current date is automatically selected/highlighted. Is there a way to remove it? I tried $(‘#jqxCalJan’).jqxCalendar(‘clear’); but it is not working. Thanks.


    ivailo
    Participant

    Hi jqxfidqs,

    There is no api’s option about that, but like a workaround you can remove the classes responsible to the highlighting.

    Here is the demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com


    jqxfidqs
    Participant

    Thank you. In your demo, current Date is not highlighted upon initialization, any reason for this? because of this I am not able to validate removing the highlighting.

    In every demo of yours, the calendars are plain without any pre-selected date. I tried IE & Chrome, they are looking same. In my code, every calendar is being initialized with current date highlighted.

    $(“#jqxCalJan”).jqxCalendar({ width: ‘100%’, height: ‘100%’, theme: theme, selectionMode: ‘default’, readOnly: true, showOtherMonthDays: false, enableWeekend: true, enableViews: false });


    ivailo
    Participant

    Hi jqxfidqs,

    As you can see in my code the highlighting is removed immediately after initialization of the calendar. In some events the widget is redrawn (with also adding the CSS classes about current date highlighting), so when they are detected the highlighting is removed immediately again. This is the reason why you can’t see it.

    The current date is selected. Only the highlighting classes are removed. I showed you the way how to do that, so you can customize it in way depending your needs.

    Here is a similar example with switching the highlighting.

    Best Regards,
    Ivailo Ivanov

    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.