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
close icon

Cards Order

Hello,

I have a kanban, and i would like that cards stay where i put them. Currently they go to the top of the second column if they were near the top in the first column and they go to the bottom of the secund column if they were near the bottom of the first one.
Just like in this demo where i can't have card 1, then card 3, then card 2 : http://mvc.syncfusion.com/demos/web/kanbanboard/headertemplate

I found in your demo a exemple doing what i want but i don't understand wich part of the code is doing it. http://mvc.syncfusion.com/demos/web/kanbanboard/customizationandtooltip


Regards,

Cholet

3 Replies

BS Buvana Sathasivam Syncfusion Team April 17, 2017 04:52 AM UTC

Hi Cholet, 

Thanks for using Syncfusion product. 

In Kanban control, priority field has been mapped data source field to maintain cards priority. Based on card priority, drag and drop the card was aligned in the particular column. If you are not set priority, then card was aligned based on primary key. 

Please refer the following code, 

@(Html.EJ().Kanban("Kanban") 
   …… 
           .Fields(field => 
                  { 
                      field.Color("Type") 
                           .Content("Summary") 
                           .Priority("RankId"// Priority property 
                           .PrimaryKey("Id"); 
                  }) 
 ) 



Please let us know if you have any further assistance. 

Regards, 
Buvana S. 
 



CH Cholet April 18, 2017 07:28 AM UTC

Hello, 
It works.
Thank you !


BS Buvana Sathasivam Syncfusion Team April 19, 2017 05:16 AM UTC

  
Hi Cholet,  
 
Thanks for your update.  Let us know if you have any further queries, we would be happy to assist you.  
 
Regards,  
Buvana S.  
 


Loader.
Live Chat Icon For mobile
Up arrow icon