Announcement

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

  • claudiobosticco
    replied
    Thank you very much, I don't see new 13.0 or 13.1 builds, is everything ok with the builds?
    Last edited by claudiobosticco; 30 Nov 2023, 02:49.

    Leave a comment:


  • Isomorphic
    replied
    This one has been fixed in affected branches for tomorrow's builds, dated November 29 or later.

    Leave a comment:


  • Isomorphic
    replied
    hi Claudio - we see the issue and we'll update here when it's been fixed.

    Leave a comment:


  • claudiobosticco
    started a topic timeline problem with setLanes

    timeline problem with setLanes

    v13.0p_2023-11-20/AllModules Development Only

    Chrome on MacOS

    Hello, please try this test case in the showcase:

    Code:
    isc.Timeline.create({
        ID: "timeline",
        data: events,
        top: 50,
        height: 475,
        startDate: isc.DateUtil.getStartOf(new Date(), "W", false),
        endDate: isc.DateUtil.getEndOf(new Date(), "W", false),
        headerLevels: [{unit: "month"}, {unit: "day"}],
        laneFields: [{name: "title", title: "Developer", minWidth: 120, autoFitWidth: true}],
        canEditLane: true,
        showEventDescriptions: false
    });
    
    isc.Button.create({
        title: "test",
        click: function () {
            var dataDevelopers = [
                {name: "charlesMadigen", title: "Charles Madigen"},
                {name: "tamaraKane", title: "Tamara Kane"},
                {name: "darcyFeeney", title: "Darcy Feeney"},
                {name: "kaiKong", title: "Kai Kong"},
                {name: "shellyFewel", title: "Shelly Fewel"},
                {name: "garretMonroe", title: "Garret Monroe"}
            ];
            let lanes = [];
            for (let index = 0; index < dataDevelopers.length; index++) {
                lanes.add({
                    name: dataDevelopers[index].name,
                    title: dataDevelopers[index].title, height: 30
                });
            }
            timeline.setLanes(lanes);
        }
    })
    with this taskData:

    Code:
    var events = [
    
    {
        eventId: 1,
        name: "Add new Timeline view",
        description: "Add a new calendar Timeline component",
        startDate: new Date(2023, 10, 20, 10, 0),
        endDate: new Date(2023, 10, 20, 10, 15),
        lane: "charlesMadigen"
    },
    {
        eventId: 3,
        name: "PDF Import/Export",
        description: "Implement native PDF import/export",
        startDate: new Date(2023, 10, 20, 10, 0),
        endDate: new Date(2023, 10, 20, 10, 15),
        lane: "darcyFeeney"
    },
    {
        eventId: 5,
        name: "ListGrid cell-level selection",
        description: "Implement spreadsheet-like selection in ListGrid",
        startDate: new Date(2023, 10, 20, 10, 0),
        endDate: new Date(2023, 10, 20, 10, 15),
        lane: "shellyFewel"
    }];
    if you click the button, you'll get:

    Click image for larger version  Name:	immagine.png Views:	0 Size:	21.0 KB ID:	271345

    if you remove the lanes height, ie modify the test case like this:

    Code:
    isc.Timeline.create({
        ID: "timeline",
        data: events,
        top: 50,
        height: 475,
        startDate: isc.DateUtil.getStartOf(new Date(), "W", false),
        endDate: isc.DateUtil.getEndOf(new Date(), "W", false),
        headerLevels: [{unit: "month"}, {unit: "day"}],
        laneFields: [{name: "title", title: "Developer", minWidth: 120, autoFitWidth: true}],
        canEditLane: true,
        showEventDescriptions: false
    });
    
    isc.Button.create({
        title: "test",
        click: function () {
            var dataDevelopers = [
                {name: "charlesMadigen", title: "Charles Madigen"},
                {name: "tamaraKane", title: "Tamara Kane"},
                {name: "darcyFeeney", title: "Darcy Feeney"},
                {name: "kaiKong", title: "Kai Kong"},
                {name: "shellyFewel", title: "Shelly Fewel"},
                {name: "garretMonroe", title: "Garret Monroe"}
            ];
            let lanes = [];
            for (let index = 0; index < dataDevelopers.length; index++) {
                lanes.add({
                    name: dataDevelopers[index].name,
                    title: dataDevelopers[index].title
                });
            }
            timeline.setLanes(lanes);
        }
    })
    then you'll get this after clicking the button:

    Click image for larger version  Name:	immagine (1).png Views:	0 Size:	25.3 KB ID:	271346
    where the 2nd and 3rd events are on the wrong lanes.

    If you'll modify the test case like this instead (ie without button but executing the code in the click handler immediately after creating the timeline):

    Code:
    isc.Timeline.create({
        ID: "timeline",
        data: events,
        top: 50,
        height: 475,
        startDate: isc.DateUtil.getStartOf(new Date(), "W", false),
        endDate: isc.DateUtil.getEndOf(new Date(), "W", false),
        headerLevels: [{unit: "month"}, {unit: "day"}],
        laneFields: [{name: "title", title: "Developer", minWidth: 120, autoFitWidth: true}],
        canEditLane: true,
        showEventDescriptions: false
    });
    
    var dataDevelopers = [
        {name: "charlesMadigen", title: "Charles Madigen"},
        {name: "tamaraKane", title: "Tamara Kane"},
        {name: "darcyFeeney", title: "Darcy Feeney"},
        {name: "kaiKong", title: "Kai Kong"},
        {name: "shellyFewel", title: "Shelly Fewel"},
        {name: "garretMonroe", title: "Garret Monroe"}
    ];
    let lanes = [];
    for (let index = 0; index < dataDevelopers.length; index++) {
        lanes.add({
            name: dataDevelopers[index].name,
            title: dataDevelopers[index].title
        });
    }
    timeline.setLanes(lanes);
    then you'll get the correct timeline (with or without the lanes height setting):
    Click image for larger version  Name:	immagine (2).png Views:	0 Size:	25.3 KB ID:	271347
    Last edited by claudiobosticco; 22 Nov 2023, 02:38.
Working...
X