Dropdown did not show any data at Card Edit Dialog

Hi,

I have kanban board with property that I want to show:

        public class KanbanTask
        {
            public int Id { get; set; }
            public string? Status { get; set; }
            public string? Priority { get; set; }
            public string? Title { get; set; }
            public string? Number { get; set; }
            public string? Summary { get; set; }
            public string? ProgramResource { get; set; }
            public int ProgramResourceId { get; set; }
        }

The other field is shown, except for the Priority field:

Image_6944_1713187222748


The data is already there:

Image_3281_1713187271581


and below are my kanban dialog settings:

    <script>


        document.addEventListener('DOMContentLoaded', function () {


            setFormCardHeight();


            var dataManager = new ej.data.DataManager({
                url: '/api/ProgramBoard/KanbanGet',
                updateUrl: '/api/ProgramBoard/KanbanUpdate',
                insertUrl: '/api/ProgramBoard/KanbanInsert',
                removeUrl: '/api/ProgramBoard/KanbanDelete',
                adaptor: new ej.data.UrlAdaptor(),
            });


            var kanbanObj = new ej.kanban.Kanban({
                dataSource: dataManager,
                width: 'auto',
                height: 'auto',
                enableTooltip: true,
                keyField: 'status',
                columns: [
                    { headerText: 'Draft', keyField: 'Draft', template: '#headerTemplate', allowToggle: true },
                    { headerText: 'Confirmed', keyField: 'Confirmed', template: '#headerTemplate', allowToggle: true },
                    { headerText: 'OnProgress', keyField: 'OnProgress', template: '#headerTemplate', allowToggle: true },
                    { headerText: 'Done', keyField: 'Done', template: '#headerTemplate', allowToggle: true },
                    { headerText: 'Cancelled', keyField: 'Cancelled', template: '#headerTemplate', allowToggle: true, isExpanded: false }
                ],
                cardSettings: {
                    headerField: 'title',
                    template: '#cardTemplate',
                    selectionType: 'Multiple',
                },
                swimlaneSettings: {
                    keyField: 'programResource',
                },
                allowDragAndDrop: true,
                sortSettings: {
                    sortBy: 'Custom',
                    field: 'number',
                    direction: 'Descending'
                },
                dialogSettings: {
                    fields: [
                        { key: 'title', text: 'Title', type: 'TextBox' },
                        { key: 'programResource', text: 'Resource', type: 'DropDown', validationRules: { required: true } },
                        { key: 'summary', text: 'Summary', type: 'TextArea' },
                        { key: 'status', text: 'Status', type: 'DropDown' },
                        { key: 'priority', text: 'Priority', type: 'DropDown' },
                    ]
                },
                cardRendered: function (args) {
                    ej.base.addClass([args.element], args.data.priority);
                }
            });
            kanbanObj.appendTo('#Kanban');
        });
    </script>


Are there any configuration I missed? the goal is how to make dropdown data shown for field Priority?

Best regards,

Ismail H


3 Replies 1 reply marked as answer

VJ Vinitha Jeyakumar Syncfusion Team April 16, 2024 06:34 AM UTC

Hi ISMAIL HAMZAH,


We would like to inform you that, we cannot use more than one same type in the fields, such that types can only be used once in the Custom dialog. 
But we have already considered this requirement as a feature "Provide support to add multiple dropdown type in the fields in DialogSettings of Kanban" from our end.

Now you can track the status of the feature in the below feedback link.



The above feature will be implemented in any one of the future volume releases. Generally, we will plan the feature implementation based on the customer request count, feature rank, and wishlist plan. You can upvote the feature request feedback so that it gets support and will be ranked higher for implementation.


Until the, the dialog template can be used to render many multiple drop-down lists within a dialog. To resolve your reported issue, we suggest you to use the dialog template with Kanban.

Documentation:

Demos:

Regards,
Vinitha



Marked as answer

IH ISMAIL HAMZAH April 16, 2024 01:46 PM UTC

Hi Vinitha,


Thank you for your update. Following your suggestion: Using dialog template, I can achieve my goal:


Image_8207_1713275146320

Thank you,

Ismail H



VJ Vinitha Jeyakumar Syncfusion Team April 17, 2024 05:04 AM UTC

Hi ISMAIL HAMZAH,


You are welcome.

Regards,
Vinitha

Loader.
Up arrow icon