How can I get the properties of the cards in the column in order in sfKanban?

Hello,


I want to get the order of cards in a column in sfKanban. For example, in the first addition, there are cards with IDs 1-2-3-4-5-6-7-8-9-10 in the first column. The user has moved these cards. Dragged IDs 2-4-8 to the second column. Changed the first column. The ranking is 1-10-6-7-3-9-5. Is there an easy way to access the properties of the cards respectively in the column?


3 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team July 25, 2022 02:06 PM UTC

Hi Özgür,


#Regading get the properties of the cards in the column in order in sfKanban

Your requirement can be achieved by using the CardDragEnd event in SfKanban. Inside the event, you can get the details of cards in column. Please refer to the following code snippet for you reference.


Code snippet

private void SfKanban_CardDragEnd(object sender, Syncfusion.UI.Xaml.Kanban.KanbanDragEndEventArgs e)

{

    //// Get the column cards details

    var cards = e.TargetColumn.Cards;

}


Please refer to the tested sample in the following locations.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfKanbanWPF-1888359255


Please let us know if you have any concerns.


Regards,
SaiGanesh Sakthivel


Marked as answer

ÖZ Özgür replied to SaiGanesh Sakthivel July 27, 2022 06:18 AM UTC

Thank you for your quick reply. 



SS SaiGanesh Sakthivel Syncfusion Team July 28, 2022 01:38 PM UTC

Hi Özgür,


We are glad to know that the provided solution is resolved the query. Please let us know if you need any further assistance on this. 


Regards, 

SaiGanesh Sakthivel


Loader.
Up arrow icon