Drop event update all cards

Hi 

When I drag and drop a card on kanban component 
It is changing all card status 

And When I call dragstop event it has not old data 

so how I update my stautus with drag drop

codes :

<SfKanban CssClass="kanban-overview" KeyField="STATUS" DataSource="@Tasks" EnableTooltip="true" AllowDragAndDrop="true">
        <KanbanColumns>
            @foreach (ColumnsModel item in columnData)
            {
                <KanbanColumn HeaderText="@item.HeaderText" KeyField="@item.KeyField" AllowToggle="@item.AllowToggle">
                    <Template>
                        @{
                            KanbanColumn column = (KanbanColumn)context;
                            <div class="header-template-wrap">
                                <div class="header-icon e-icons @column.KeyField"></div>
                                <div class="header-text">@column.HeaderText</div>
                            </div>
                        }
                    </Template>
                </KanbanColumn>
            }

        </KanbanColumns>
        <KanbanCardSettings ContentField="KONU" HeaderField="BASLIK" SelectionType="@SelectionType.Multiple">
            <Template>
                @{
                    TaskSurrogate task = (TaskSurrogate)context;
                    <div class="card-template @task.PRIORITY">
                        <div class="e-card-header">
                            <div class="e-card-header-caption">
                                <div class="e-card-header-title e-tooltip-text">@task.BASLIK</div>
                            </div>
                        </div>
                        <div class="e-card-content e-tooltip-text">
                            <div class="e-text">@task.KONU</div>
                        </div>
                        <div class="e-card-footer">
                            @{
                                string[] baslatanlar = task.BASLATAN.Split(",");
                                @foreach (var bas in Enumerable.Range(0, baslatanlar.Count()))
                                {
                                    <div class="e-card-tag e-tooltip-text">@baslatanlar[bas]</div>
                                }
                            }
                            <div class="e-card-avatar">
                                @{
                                    string[] strSplit = task.ATANAN.Split();
                                    foreach (string res in strSplit)
                                    {
                                        @res.Substring(0, 1).ToUpper()
                                    }
                                }
                            </div>
                        </div>
                    </div>
                }
            </Template>
        </KanbanCardSettings>
        <KanbanSwimlaneSettings KeyField="SUREC_ADI"></KanbanSwimlaneSettings>
        <KanbanEvents TValue="TaskSurrogate" DragStop="@StatusChanged"></KanbanEvents>
    </SfKanban>

@code {

 public class TaskSurrogate
    {
        public string SUREC_ADI { get; set; }
        public int CID { get; set; }
        public string BASLIK { get; set; }
        public string KONU { get; set; }
        public string BASLATAN { get; set; }
        public string REPORTSTO { get; set; }
        public string ATANANID { get; set; }
        public DateTime ATANMA_TARIHI { get; set; }
        public DateTime BITIS_TARIHI { get; set; }
        public string STATUS { get; set; }
        public string PRIORITY { get; set; }
        public int TIID { get; set; }
        public int TID { get; set; }
        public int CREATEDID { get; set; }
        public string LANG { get; set; }
        public string ATANAN { get; set; }
    }

protected List<TaskSurrogate> Tasks = new List<TaskSurrogate>();
Tasks = TemporaryDbManager.GetAllTask<TaskSurrogate>();
  var columnsData = Tasks.Select(x => x.STATUS).Distinct().ToList();

        columnsData.ForEach(cd => { columnData.Add(new ColumnsModel() { HeaderText = cd, KeyField = cd }); });
     

 protected void StatusChanged(Syncfusion.Blazor.Kanban.DragEventArgs args)
    {
          //What should I do?
    }

}




6 Replies 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team July 6, 2020 12:09 PM UTC

Hi Cemil,

Greetings from Syncfusion support,

We are currently validating your reported query and will update you with further details in two business days by 8th July 2020.

Regards,
Indrajith


IS Indrajith Srinivasan Syncfusion Team July 9, 2020 12:46 PM UTC

Hi Cemil,

Good day to you,
 
 
 We have further validated on the reported query and have considered “Kanban cards can't be dynamically updated in the DragStop event” as a bug from our end and logged the report for the same, and the fix will be included with our weekly patch release, which is scheduled on 21st of July. 

You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/15912/
 
  
Regards,  
Indrajith 



VM Vengatesh Maniraj Syncfusion Team July 21, 2020 01:33 PM UTC

Hi Cemil, 

Sorry for the inconvenience.   

The fix is rescheduled to our weekly patch release which is scheduled on July 28, 2020. We will ensure the fix and update the further details on July 29, 2020. We appreciate your valuable patience until then.   

Regards, 
Vengatesh  



VM Vengatesh Maniraj Syncfusion Team July 29, 2020 01:59 PM UTC

Hi Cemil 
 
We are glad to inform you, the reported defect in kanban card status is not updated dynamically while performing drag action has been resolved at our end. For your reference, kindly refer to the below release notes. 
 
 
 
Kindly upgrade your version to the latest patch release to avail of this fix. 
 
Regards, 
Vengatesh  


Marked as answer

UN Unknown Syncfusion Team July 29, 2020 02:02 PM UTC

Thanks

This problem is resoled by dragdrop event

thanks for your help


VM Vengatesh Maniraj Syncfusion Team July 30, 2020 05:35 AM UTC

Hi Cemil, 

You are most welcome. 

We are happy that your problem has resolved now. 

Please get in touch with us if you need further assistance. 

Regards, 
Vengatesh   


Loader.
Up arrow icon