Announcement

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

    TimeLine custom showEventEditor error in display the component

    When overriding the showEventEditor function in TimeLine, a grid rendering issue appears if I, for any reason, refuse to create a new event.
    The cells selected with the mouse before the call to showEventEditor remain displayed as selected afterwards.

    The problem can be resolved by calling calendar.clearViewSelection(); in my overridden showEventEditor.
    However, clearViewSelection is an undocumented function.

    #2
    Call timeline.cancelEditing(), which is public.

    Comment


      #3
      Thank you very much for the qualified and prompt response.

      Comment


        #4
        I don’t want to sound like a smart-aleck or a know-it-all, but in the code of the cancelEditing function, the snippet

        Code:
            if (this.eventEditor && this.eventEditor.isVisible()) {
                this.hideEventDialog();
            }
        is repeated twice in a row.

        Once again, I apologize for this remark.

        Comment


          #5
          The two snippets have different conditions - but it's true that they both call hideEventDialog(), where the one you showed should instead be calling hideEventEditor().

          That internal method has been added and the code you noted modified to call it.

          You can retest in today's builds, dated August 25, and later ones.

          Comment

          Working...
          X