Accessing and Placing Cards into specific index in specific columns

Hi,

I am new to Syncfusion and evaluating SfKanban control for one of my requirements. I have the following queries:

1) Run time addition of a new KanbanModel object into collection that is bound to ItemsSource of SfKanban always adding the new item to the end of the Category column in the UI irrespective of the index of the newly added item in the collection bound to ItemsSource. I need to be able to add the new item at a specific index within the category column. How can I achieve that?

2) During events such as DragStart, DragEnd, DragEnter, DragLeave and DragOver I have access to the Data, SourceColumn, SourceIndex, TargetColumn and TargetIndex. Data denotes the underlying model of the Card that is being dragged. How can I retrieve the underlying model object of the card that is existing at  TargetIndex of TargetColumn if any?

3) How to programatically move a card to specific index of a specific column?

4) How to refresh the view of whole Kanban board after making changes to changes to collection of KanbanModel so that whole Kanban Board is rendered again?

4 Replies

DD Devakumar Dhanapoosanam Syncfusion Team July 10, 2020 04:14 AM UTC

Hi Sreenesh Pai, 
 
Greetings from Syncfusion. 
 
Currently we are working on all your queries at our end and we will update you the complete details on July 10, 2020 before EOD. 
 
Regards, 
Devakumar D 



SP Sreenesh Pai July 11, 2020 02:13 AM UTC

Any update on this?


DD Devakumar Dhanapoosanam Syncfusion Team July 12, 2020 07:27 PM UTC

Hi Sreenesh Pai, 
 
Sorry for the delay. 
 
Query 1:  
 
Currently there is no direct support to position the newly added item in the KanbanModel Collection at specific index of the KanbanColumn category. We are validating this as a feature, and we will update you the details on July 14, 2020. 
 
Query 2: How can I retrieve the underlying model object of the card that is existing at TargetIndex of TargetColumn if any? 
 
We need some more time to check the possibilities for getting the TargetColumn underlying model object with our development team and will update you the details on July 14, 2020. 
 
Query 3: How to programmatically move a card to specific index of a specific column? 
 
We can programmatically move the card to specific category of the kanban column as in below code snippet and we regret to say that there is no direct support to position the card based on index at particular column. 
 
C#: 
private void MoveCard_Clicked(object sender, EventArgs e) 
{ 
            var category = viewModel.Cards[0].Category; 
 
            if (category.ToString() == "Open") 
            { 
                viewModel.Cards[0].Category = "In Progress"; 
            } 
            else if (category.ToString() == "In Progress") 
            { 
                viewModel.Cards[0].Category = "Code Review"; 
            } 
            else if (category.ToString() == "Code Review") 
            { 
                viewModel.Cards[0].Category = "Closed"; 
            } 
} 
 
Query 4: 
 
We would like to let you know that when dynamically add/remove the KanbanModel collection items the Kanban item gets updated. To refresh whole Kanban view, update using the new collection of the KanbanModel set for the Kanban ItemsSource. 
 
If your requirement differs from above, please update us with more details investigate further and provide you a better solution at the earliest? 
 
Regards, 
Devakumar D 



DD Devakumar Dhanapoosanam Syncfusion Team July 14, 2020 01:44 PM UTC

 
Thanks for your patience. 
 
Query 1 & 2:  
 
As we said earlier, currently we do not have support to achieve requirement in sample level and hence we have considered all the reported requirement as a feature request and logged a feature request. Please find the below feedback link to track the status of the feature, 
  
  
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have immediate plan to implement this feature since we committed with already planned work. So, this feature will be available any of our upcoming release.  
  
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.  
 
Regards, 
Devakumar D 


Loader.
Up arrow icon