Kanban's all cards are changed after moving a card.

Hi support team,

Thanks for wonderful components!
I have a problem about Kanban.


[situation]
* Using Synfusion.Blazor(18.0.53) and Syncfusion.EJ2.AspNet.Core(18.0.53) from Nuget.
* Using Kanban with swimlane.

[problem]
When I draganddrop a card, the contents of all cards in the swimlane will be the same.

[example of attach file]
Whether I move card"出荷依頼コード : 68", card"出荷依頼コード : 77", card"出荷依頼コード : 78",
the contents will be the same as card"出荷依頼コード : 78".


Could you please tell me the cause and solution ?
Thanks for your support.

Regards
Hiroki

-------------------------- my Kanban ------------------------
<SfKanban TValue="ShipmentModel" KeyField="statusDDL" DataSource="Shipments">
    <KanbanColumns>
        <!--KanbanColumn-- HeaderText="下書き" KeyField="@* @(new List<string>() { "draft" }) *@"></!--KanbanColumn-->
        <KanbanColumn HeaderText="準備中" AllowToggle=true KeyField="@(new List<string>() { "preparing" })"></KanbanColumn>
        <KanbanColumn HeaderText="要確認" AllowToggle=true KeyField="@(new List<string>() { "needCheck" })"></KanbanColumn>
        <KanbanColumn HeaderText="準備終" AllowToggle=true KeyField="@(new List<string>() { "prepared" })"></KanbanColumn>
        <KanbanColumn HeaderText="出荷待" AllowToggle=true KeyField="@(new List<string>() { "waiting" })"></KanbanColumn>
        <KanbanColumn HeaderText="完了" AllowToggle=true IsExpanded=false KeyField="@(new List<string>() { "done" })"></KanbanColumn>
    </KanbanColumns>
    <KanbanCardSettings HeaderField="ShipmentDate" ContentField="ShipmentTypeID">
        <Template>
          
             ~  card template definition ~
           
        </Template>
    </KanbanCardSettings>
    <KanbanSwimlaneSettings KeyField="ShipmentDate" SortDirection="@sortDirection"></KanbanSwimlaneSettings>
</SfKanban>

------------------------------ my model and datasource------------------
public class ShipmentModel
    {
        // Models/DB/Tables/DeliveryInfo
        public long ShipmentID { get; set; }
        public string statusDDL { get; set; }
       public string OrderNo { get; set; }
        public DateTime ShipmentDate { get; set; }
        public string ShipmentType { get; set; }
        public List<DeliveryWay> DeliveryWays { get; set; }
        public string UserName { get; set; }
        public List<DeliveryProductInfo> deliveryProductInfos { get; set; }
        public string CreatedUserId { get; set; }
    }
    public List<ShipmentModel> Shipments = new List<ShipmentModel>() { };


Attachment: pictures_d767b6d6.zip

3 Replies 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team May 20, 2021 12:13 PM UTC

Hi Hiroki, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. The reported issue occurs, since you have maintained an same HeaderField (ShipmentDate) for the HeaderField and the Swimlane Keyfield of the SfKanban. It is not a recommended way for maintaining the HeaderField as static values, you need to maintain a unique Headerfield to resolve the reported issue. Check the below documentation for reference. 
 
 
 
Please get back to us is you face any difficulties, 
 
Regards, 
Indrajith 


Marked as answer

HT Hiroki Tachiyama May 21, 2021 06:26 AM UTC

Hi Indrajith,

The issue is resolved by your advice !
My kanban works fine :)

Thank you a lot for your speedy reply.

Regards,
Hiroki


RK Revanth Krishnan Syncfusion Team May 24, 2021 10:34 AM UTC

Hi Hiroki, 
 
Thanks for the update. 
 
We are glad that the provided solution resolves your issue. Please let us know if you need any further assistance. 
 
Regards, 
Revanth 


Loader.
Up arrow icon