Ordering model on kandan

I have 2 questions about sfkanban 
1) is it possible to bind columns or like in the Documentation they need to be hardcoded 
2) there is drag and drop Feature.  Is ir just visual effect or i can commit ui changes to observablecollection and it gets ordered based on ui 

5 Replies

SP Saravana Pandian Murugan Syncfusion Team November 15, 2017 12:58 PM UTC

Hi Emil, 
  
Thanks for using Syncfusion products. 
  
Regarding Is it possible to bind columns or like in the Documentation they need to be hardcoded 
  
Yes. It is possible to bind the columns to Kanban. Please find the code snippet below. 
  
Code Example:  
  
  
<kanban:SfKanban x:Name="kanban" AutoGenerateColumns="False" Columns="{Binding KanbanColumns}" HorizontalOptions="FillAndExpand"  
 
VerticalOptions="FillAndExpand" ItemsSource="{Binding Cards}"/>       
  
  
Regarding There is drag and drop Feature. Is it just visual effect or i can commit ui changes to observablecollection and it gets ordered based on ui  
 
You can change the category of the selected card’s model in DragEnd event. Please find the code snippet below.  
  
Code Example: 
  
 
private void Kanban_DragEnd(object sender, KanbanDragEndEventArgs e) 
 
{ 
 
    (e.Data as KanbanModel).Category = e.TargetCategory; 
 
} 
  
  
We have prepared sample for these requirements which can be downloaded from the below location. 
  
  
Please check the attached sample and let us know if you need further assistance on this. 
  
Regards, 
Saravana Pandian M 



GA Gene Allen February 13, 2019 07:32 PM UTC

I  have a similar requirement but I need to remember the order within the Category. 

For example, someone drags the top card in a category to the bottom.  When I do this, the DragEnd event fires and I see the source index and target indexes are set.

But how do I get the overall order (so I can save it), then later how to set the cards in the correct order?


BK Bharathiraja K Syncfusion Team February 14, 2019 11:05 AM UTC

Hi Gene, 
 
Currently, we don’t have direct support to order the Kanban column. So, we have already included Preserve the order of cards in Xamarin.Forms kanban board in our feature requirement list and you can track this below.    
 
 
We don’t have any immediate plans to implement this feature.  At the planning stage for every release cycle, we review all open features.  We will let you know when this feature is implemented.” 
 
Regards,  
Bharathiraja. 



GA Gene Allen February 15, 2019 05:02 AM UTC

Thank you for the update Bharathiraja,

I don't understand why support dragging cards around within a column and not supporting saving/loading the resultant order.
I'll keep an eye out to see if/when this is ever added.

thank you again



BK Bharathiraja K Syncfusion Team February 18, 2019 09:22 AM UTC

Hi Gene,  
 
Thanks for your update. Unfortunately, we have not planned this support during our previous feature implementation. We will update you the status once this support is available. 
 
Regards, 
Bharathiraja. 


Loader.
Up arrow icon