DragEnd e.TargetColumn is null on android same column

hi,  if a drag and drop a card to same column but in a diferent position the targets are null in android in uwp its Ok.

i can reproduce on your demo sample  SampleBrowser.SfKanban


using: Syncfusion Patch 19.2.0.55_1294540_9162021033435616_F168793


Attachment: print_null_android_fde2c125.zip

1 Reply

YP Yuvaraj Palanisamy Syncfusion Team September 20, 2021 05:14 PM UTC

Hi Antonio, 

Greetings from Syncfusion. 

We have analyzed your query and we would like to let you know that when we drag the card within the column DragEnd event returns TargetColumn argument is null in Android and iOS. This is actual behavior of SfKanban, due to the target column is not different from source column. Hence, if you want to get the target column in this scenario, you can get the source column instead of target column as per the below code example. 

CodeSnippet:  
private void kanban_DragEnd(object sender, KanbanDragEndEventArgs e) 
   if(e.TargetColumn == null) 
    {                 
        var targetColumn = e.SourceColumn; // In Android and iOS if we drag the card in the same column is target column is null, hence use source column in this scenario.  
   


Note: In UWP, it returns the target column as the source column while dragging within the column.  

Please let us know if you have any concern. 

Regards, 
Yuvaraj. 


Loader.
Up arrow icon