Announcement

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

    Calendar event jumps to the top left corner

    Hello,
    I'm using calendar widget. I could add new events using calendar.addEventAddedHandler(.......). But the problem is that the Calendar event jumps to the top left corner . Anybody plz help me to solve it...
    Last edited by angelrani; 30 Jun 2011, 23:19.

    #2
    There are no other reports of this happening - please provide a test-case

    Comment


      #3
      I can verify this issue using smartgwt-3.0-20111020.

      I have attached a very basic example that reproduces the problem. It has to do with using addEvent with a datasource, either client or server side. Adding events by interacting with the calendar works fine, but if you use addEvent, you get a duplicate in the corner. The event shows up where it's supposed to be, but there is another one with no time and the title of "Untitled Window". (screenshot attached as well.) Hovering over the event in the corner shows the correct info. Moving either event moves the actual event around (leaving the extra one in the corner) and deleting either one deletes both. Adding another event using the mouse has no effect on the one in the corner. If you create a second event using addEvent, hovering over the corner event shows the new info, but I have no way of determining if it creates another one or just changes the existing one.. However, deleting *any* event, even ones create with the mouse, will remove the event from the corner.

      The event is attached to the top of the calendar. If you scroll down to later times, the event will scroll off the top. It only happens in the week view or day view and they are independent. If you create an event in the week view, then one in the day view, the event in the corner references the event created in the view that you are looking at; you can switch back and forth. If you change the day or the week, then the event in that view goes away. If you delete an event, then both corner events go away.
      Attached Files

      Comment


        #4
        Just to be very clear, this only happens with a datasource. Without the datasource, using addEvent doesn't cause the phantom corner event.

        Comment


          #5
          The corner event doesn't actually track changes to the normal event. If you move or resize the normal event, the time on the corner event doesn't change. If you change the normal event and then drag the corner event somewhere, the normal event moves to that spot, but now has the original duration.

          Comment


            #6
            We've made a change that should resolve this issue. Please try the next 3.0 nightly build (dated Nov 2 or greater)

            Comment


              #7
              Yes, it is now fixed. Thank you!

              Comment


                #8
                I normally used to download the stable release from SC site.

                For this issue fix, do we need to download the whole SC pack (nighly build of 3rd Nov) or just ISC_Calendar.js file. If fix is just in file, can someone share it over this thread.

                Comment

                Working...
                X