We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How do I get the order of the cards within a column

Hi,

It's probably in your documentation somewhere, but I couldn't find it.

When a user moves a card within one column or moves a card from one column to another, I need it to stay in the proper order.
I have a column in my DB to maintain the order of the cards, but I couldn't find in your doc how to get the order of all the items in a column.
Thanks.

1 Reply

AP Arun Palaniyandi Syncfusion Team September 18, 2017 11:08 AM UTC

Hi Sam Tran,  
 
Thanks for using Syncfusion product.  
 
In Kanban control, priority field has been mapped in data source field to maintain cards priority. Based on card priority, drag and drop of the card was aligned in the particular column. If priority is not set priority, then cards are aligned based on primary key.  
 
Please refer the following code,  
 
@(Html.EJ().Kanban("Kanban")  
   ……  
           .Fields(field =>  
                  {  
                      field.Color("Type")  
                           .Content("Summary")  
                           .Priority("RankId")   //use priority property 
                           .PrimaryKey("Id");  
                  })  
 )  
 
Please refer the following API document: https://help.syncfusion.com/api/js/ejkanban#members:fields-priority   
 
 
 
 
 
Please let us know if you need any further assistance.  
 
Regards,  
Arun P.  


Loader.
Up arrow icon