Our flexible Kanban board for managing tasks with drag drop


Post by shimnx »

	[
    {
        "id": "3a074e1f-3abd-e5a0-c312-5a688f6d188a",
        "text": "Others"
    },
    {
        "id": "3a09510a-55d6-cbe8-2e4b-b40102453bba",
        "text": "33333"
    },
    {
        "id": "3a096fd2-89ae-684f-84fd-7bf9f7e0f8ac",
        "text": "123456"
    }
]

This is the data in my drop-down list, there are three tasks in my video that have a group called 'milestone', and actually the milestone is not in my drop-down data, so if I double click on the cell it will show its id, but I don't want it to show its id, I want it to still show 'milestone' after double clicking, or is it empty?

"eventsData": [
        {
            "id": "8845ef2d-2556-48fd-a213-cfdc096e1c5a",
            "parentId": null,
            "name": "New milestone 1",
            "percentDone": 0.0,
            "startDate": "2022-11-07",
            "endDate": "2022-11-07",
            "schaefflerEndDate": "2022-11-06",
            "rollUp": null,
            "duration": 0,
            "showInTimeline": null,
            "baseLines": [],
            "children": null,
            "phantomId": null,
            "expanded": null,
            "note": null,
            "draggable": true,
            "resizable": true,
            "constraintDate": null,
            "constraintType": null,
            "durationUnit": "day",
            "deadLineDate": null,
            "effort": 0.0,
            "effortDriven": false,
            "effortUnit": "hour",
            "inactive": null,
            "manuallyScheduled": false,
            "schedulingMode": "Normal",
            "slackUnit": "hour",
            "cls": "",
            "iconCls": null,
            "style": null,
            "taskIconCls": null,
            "parentIndex": 6,
            "status": "To Do",
            "remark": null,
            "attachments": [
                {
                    "relatedId": "8845ef2d-2556-48fd-a213-cfdc096e1c5a",
                    "name": "Frame 693 (1).png",
                    "fileUrl": "http://wp001-kimi-oss-02.oss-cn-hangzhou.aliyuncs.com/3a094bd6-4187-83ee-45d9-acfbbaaa1936.png?Expires=3253927849&OSSAccessKeyId=LTAI5t8g6TWxTJ35LgEXPGkY&Signature=BOnFKIihrTWXfbzHbXMepAe74ns%3D",
                    "fileType": ".png",
                    "eTag": "418B6FCA41E4BFFB0B96174036EEED43",
                    "requestId": "63E5CD2E8973B8353002331E",
                    "tenantId": "3a047944-43ee-8651-13cd-ee2c89dca7fe",
                    "isDeleted": false,
                    "deleterId": null,
                    "deletionTime": null,
                    "lastModificationTime": null,
                    "lastModifierId": null,
                    "creationTime": "2023-02-10T12:50:54.231909",
                    "creatorId": "fbc68edc-33a5-4ee7-a1eb-c71c3c4f38f6",
                    "id": "3a094bd6-5492-07f6-1eef-9984fdb5746e"
                },
                {
                    "relatedId": "8845ef2d-2556-48fd-a213-cfdc096e1c5a",
                    "name": "Frame 693 (3).png",
                    "fileUrl": "http://wp001-kimi-oss-02.oss-cn-hangzhou.aliyuncs.com/3a094bd6-4135-da60-11e7-d57ff0974b22.png?Expires=3253927849&OSSAccessKeyId=LTAI5t8g6TWxTJ35LgEXPGkY&Signature=9FkqgK2A6Z8z9qPybZf%2BoGtkJZQ%3D",
                    "fileType": ".png",
                    "eTag": "C35C65A9191BEF8B7FEC3500D5B5AEC8",
                    "requestId": "63E5CD2E66D7213235C5003A",
                    "tenantId": "3a047944-43ee-8651-13cd-ee2c89dca7fe",
                    "isDeleted": false,
                    "deleterId": null,
                    "deletionTime": null,
                    "lastModificationTime": null,
                    "lastModifierId": null,
                    "creationTime": "2023-02-10T12:50:54.231339",
                    "creatorId": "fbc68edc-33a5-4ee7-a1eb-c71c3c4f38f6",
                    "id": "3a094bd6-5492-5ffe-d8b3-60c4b50ca9be"
                },
                {
                    "relatedId": "8845ef2d-2556-48fd-a213-cfdc096e1c5a",
                    "name": "Gantt (85).pdf",
                    "fileUrl": "http://wp001-kimi-oss-02.oss-cn-hangzhou.aliyuncs.com/3a094bd6-42aa-e46e-f46a-e8dbaf964bcd.pdf?Expires=3253927849&OSSAccessKeyId=LTAI5t8g6TWxTJ35LgEXPGkY&Signature=vgIEoxTXqklGON50v33v%2Fvq9arI%3D",
                    "fileType": ".pdf",
                    "eTag": "3C570A042333B7C762BBCCAB333BF2A8",
                    "requestId": "63E5CD2F66D7213235B6043A",
                    "tenantId": "3a047944-43ee-8651-13cd-ee2c89dca7fe",
                    "isDeleted": false,
                    "deleterId": null,
                    "deletionTime": null,
                    "lastModificationTime": null,
                    "lastModifierId": null,
                    "creationTime": "2023-02-10T12:50:54.234641",
                    "creatorId": "fbc68edc-33a5-4ee7-a1eb-c71c3c4f38f6",
                    "id": "3a094bd6-5492-91e7-369d-47e634f9920d"
                }
            ],
            "isAllowDelete": true,
            "bookedHours": 0.0,
            "priority": 50,
            "priorityName": "Medium",
            "groupId": "3a074e1f-3abd-e5a0-c312-5a688f6d188a",
            "groupName": "Others",
            "planiswareProjectId": null,
            "planiswareProjectNumber": null,
            "planiswareTaskId": null,
            "sapwbsElement": null,
            "budget": null,
            "dataSourceType": 0,
            "involveWorkLogs": []
        }
    ],

Post by alex.l »

Hi shimnx,

You didn't attach video. Also please show your code regarding to that combo with full config you used, and describe actual and expected result. We need to see a full picture to help you with that.

Thank you.

All the best,
Alex


Post by shimnx »

So here's my video, but anyway, I want to double-click on a cell and not show its id, but show its text, or show it as empty

Attachments
媒体2.mp4
(1.68 MiB) Downloaded 31 times

Post by shimnx »

This is my example

Attachments
example.zip
(393.09 KiB) Downloaded 31 times

Post by alex.l »

Your example is not runnable. I tried to check the code visually and I don't see any "Group" column in columns in ganttConfig.
But basically, all you need to do is to specify https://bryntum.com/products/gantt/docs/api/Core/widget/Combo#config-displayField and https://bryntum.com/products/gantt/docs/api/Core/widget/Combo#config-valueField for your editor combo. So, the widget will know what field should be used for display and for value.

All the best,
Alex


Post by shimnx »

I added it to my code

displayField:'groupName',

but it still doesn't work

Attachments
媒体2.mp4
(8.8 MiB) Downloaded 31 times

Post by alex.l »

displayField is a property of Combo, not Column. You need to set it for editor, as well as valueField.

Make sure data for your editor looks like this:

{
    id : 1,
    groupName : 'Name 1'
},
{
    id : 2,
    groupName : 'Name 2'
}

All the best,
Alex


Post by shimnx »

Thanks, I used the displayValueRenderer method to solve this problem


Post Reply