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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

move card to different column from code

Thread ID:





144025 Apr 15,2019 10:58 AM UTC Apr 17,2019 08:44 AM UTC Xamarin.Forms 1
Tags: SfKanban
Artur Aksamit
Asked On April 15, 2019 10:58 AM UTC

How to move card to a different column from c#?

Bharathiraja K [Syncfusion]
Replied On April 17, 2019 08:44 AM UTC

Hi Artur, 
Greetings from Syncfusion. We can move the card to a different column by changing its category dynamically in C#. Please find the code sample. 
Code Snippet [XAML]: 
<Button Text="Move Card" Clicked="MoveCard_Clicked"/> 
        <kanban:SfKanban x:Name="kanban" AutoGenerateColumns="False" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" ItemsSource="{Binding Cards}"> 
                <local:ViewModel x:Name="viewModel"/> 
            <kanban:KanbanColumn x:Name="column1" Title="To Do"> 
            <kanban:KanbanColumn x:Name="column2" Title="In Progress"> 
            <kanban:KanbanColumn x:Name="column3" Title="Code Review"> 
            <kanban:KanbanColumn x:Name="column4" Title="Done"> 
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"; 
Please find the sample link: 
Can you please revert us if your requirement differs from this? It will be helpful for us to investigate further and provide you a better solution at the earliest. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon