Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Calendar.allowLongEvents: new default value and missing api to remove "ghost" longEventsLayout

    SmartClient Version: v13.1p_2026-03-05/AllModules Development Only (built 2026-03-05)

    Hi, on the sidelines of the great testing work that Blama is doing, I also have two small observations about the multi-day events feature.

    First, I noticed that allowLongEvents is now enabled by default. It’s not a problem for me (aside from being different from what’s documented), but I’m not sure if that’s intentional.

    Second, when I use a custom Dialog to create events, I have to remove the “ghost” longEventsLayout after dismissing the Dialog, otherwise it will remain visible:

    Code:
    isc.Calendar.create({
        ID: "eventCalendar",
        startDate: eventData.getDataStartDate(),
        data: eventData,
        currentViewName: "month",
        allowLongEvents: true,
        alwaysShowEventHovers: false,
        eventClick: function (event, viewName) {
            isc.logEcho("eventClick")
            // show custom dialog
            return false;
        },
        showEventDialog: function (event, isNewEvent) {
            isc.logEcho("showEventDialog")
            // show custom dialog
            return false;
        }
    });
    ​​​​​​​
    Currently I’m using eventCalendar.monthView.cancelGhostDrag(), but this method isn’t documented.

    #2
    Thanks guys - we'll take a look at these various issues and update here when we've fixed them.

    Claudio, we did intend to switch the feature on by default, since it's pretty standard in other calendars, and you're using it on 13.1 - we'll check the docs for that, and add a public hook that'll hide the ghost-canvas.

    Comment


      #3
      hi Claudio - just noting that, in tomorrow's builds, Calendar.cancelGhostDrag() will be documented - it's been there for a while but wasn't public.

      Comment

      Working...
      X