Announcement

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

    Calendar.getVisibleStartDate and getVisibleEndDate not working for month view

    SmartClient Version: SNAPSHOT_v11.1d_2017-01-31/Enterprise Development Only (built 2017-01-31)

    Chrome on OSX Sierra

    Hello, please modify the databoundCalendar sample like this:

    Code:
    // using a client-only dataSource so that test data is always relative to the current date
    isc.DataSource.create({
        ID: "eventDS",
        fields:[
            {name:"eventId", primaryKey: true, type: "sequence"},
            {name:"name"},
            {name:"description"},
            {name:"startDate", type: "datetime"},
            {name:"endDate", type: "datetime"}
        ],
        clientOnly: true,
        testData: eventData
            
    });     
    
    isc.Calendar.create({
        ID: "eventCalendar", 
        top:30,
        dataSource: eventDS, autoFetchData: true
    });
    
    isc.Button.create({
        width: 150,
        title:"Visible start/end dates",
        click:"isc.say('Visible Start Date: ' + eventCalendar.getVisibleStartDate() + '<br>Visible End Date: ' + eventCalendar.getVisibleEndDate());"
    });
    in month view, if you click the button, you may see that both getVisibleStartDate() and getVisibleEndDate() return undefined.

    #2
    We see this problem and the reason for it - we'll update here when it's been fixed

    Comment


      #3
      This is fixed for tomorrow's builds.

      Comment


        #4
        SmartClient Version: SNAPSHOT_v11.1d_2017-02-20/Enterprise Development Only (built 2017-02-20)

        I can confirm it's fixed, thank you very much.

        Comment

        Working...
        X