Announcement

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

    Calendar events added via setData() not shown after setCurrentViewName() call

    Calendar events added via setData() are not automatically shown if setCurrentViewName("month") was called.

    Steps to reproduce:
    1. Go to http://www.smartclient.com/#simpleCalendar

    2. Modify the code there as follows:
    Code:
    isc.Calendar.create({
        ID: "eventCalendar",
        //data: eventData
    });
    
    eventCalendar.setCurrentViewName("month"); //works fine without this line
    eventCalendar.setData(eventData);
    3. Click Try It.
    Notice that no events are shown.

    4. Now, add an event manually (just click on any date and then Save Event or click Next/Previous arrows).
    All events defined previously in the eventCalendar.setData(eventData) call will now appear.

    thanks
    gene

    #2
    This is fixed for builds dated January 25 and later.

    Comment


      #3
      This is still reproducible exactly as described with FF and Chrome. Tested on your site with http://www.smartclient.com/#simpleCalendar and with SmartClient_v110p_2017-03-08_Pro.

      The only difference with SmartClient_v110p_2017-03-08_Pro is instead of adding events, you now need to click on the Previous or Next arrows for events to appear (for example, switch to next month and then come back and events will be shown).

      Comment


        #4
        Apologies - this actually only happened in the Showcase and it's now been fixed, for builds dated March 10 and later.

        In the meantime, you can just set currentViewName in the Calendar's initialization object.
        Last edited by Isomorphic; 9 Mar 2017, 02:06.

        Comment

        Working...
        X