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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CRUD actions using kanban control

Thread ID:





125029 Jul 15,2016 01:55 PM UTC Aug 10,2017 03:57 PM UTC ASP.NET MVC 6
Tags: Kanban
Edmund Herbert
Asked On July 15, 2016 01:55 PM UTC

Hi Guys could you give me an example of CRUD operations on the kanban control,

 I am using EF Code First MVC 5 .net 4.5.1

I want to save changes, add and delete records

Thanks in advance

Edmund Herbert

Sarath Kumar P [Syncfusion]
Replied On July 18, 2016 03:39 PM UTC

Hi Edmund,

Thank you for using Syncfusion products. 
We are facing some issues with Entity Framework sample, we will update you by tomorrow(19,July 2016).  
Please let us know if you have any concerns.   


Sarath Kumar P.

Sarath Kumar P [Syncfusion]
Replied On July 19, 2016 01:41 PM UTC

Hi Edmund, 
 We have created incident for your reported query. We will assist you through incident under your Direct Trac account.  
Our Direct Trac support system can be accessed from the following link:  
Sarath Kumar P. 

Replied On July 20, 2016 04:07 AM UTC

Hi, can you post the sample here, I am interested too

Kavitha Narayanan [Syncfusion]
Replied On July 21, 2016 09:02 AM UTC

Hi Megatron, 
We have created incident for your reported query. We will assist you through incident under your Direct Trac account.   
Our Direct Trac support system can be accessed from the following link:   
Kavitha N. 

Replied On August 9, 2017 08:49 AM UTC


I am facing the same problem. I pass the data from a ViewModel


Which works great. Now I need to be able to handle delete, update and add new actions on the server (MVC Controller). I thought I could do this;

.DataSource(d =>d.dataSource(Model.Cards).InsertUrl... but that did not work.

Any guidance is much appreciated.

Thank you in advance.

Buvana Sathasivam [Syncfusion]
Replied On August 10, 2017 03:57 PM UTC

Hi Edmund, 

Thanks for your update. 

We had prepared Kanban control sample with CRUD operations using ejDataManagerURL property is used to load data into Kanban and CrudURL property is used to get post action for processing adding/editing/deleting/updating data’s. You can use below solution to perform CRUD actions. Please refer to the below code example and sample.    
       .DataSource(ds =>      
   // To load data using  “GetData” method.     
   // added, changed, and deleted data’s can get in the CrudURL post action.     
.CrudURL("Crud").Adaptor(AdaptorType.UrlAdaptor))  //Define the DataManger.       
private NORTHWNDEntities db = new NORTHWNDEntities(); 
public ActionResult GetData(Syncfusion.JavaScript.DataManager value)    //To render all Kanban cards.                       {                                                                      
                      var DataSource = db.Tasks.ToList(); 
           DataResult result1 = new DataResult(); 
           DataOperations operation = new DataOperations(); 
           result1.result = DataSource; 
           result1.count = DataSource.AsQueryable().Count(); 
           if (value.Skip > 0) 
               result1.result = operation.PerformSkip(result1.result, value.Skip); 
           if (value.Take > 0) 
               result1.result = operation.PerformTake(result1.result, value.Take); 
          if (value.Select != null && value.Select.Count >0) 
               return Json(result1.result, JsonRequestBehavior.AllowGet); 
           return Json(result1, JsonRequestBehavior.AllowGet);     
        //Edit multiple cards for priority drag and drop 
        public ActionResult Crud(List<Task> changed, List<Task> added, List<Task> deleted) 
            //Performing insert operation 
            if (added != null && added.Count() > 0) 
                foreach (var temp in added) 
            ////Performing update operation 
            if (changed != null && changed.Count() > 0) 
                foreach (var temp in changed) 
                    Task old = db.Tasks.Where(o => o.Id == temp.Id).SingleOrDefault(); 
                    if (old != null) 
            //Performing delete operation 
            if (deleted != null && deleted.Count() > 0) 
                foreach (var temp in deleted) 
                    db.Tasks.Remove(db.Tasks.Where(o => o.Id == temp.Id).SingleOrDefault()); 
            var data = db.Tasks.ToList(); 
            return Json(data, JsonRequestBehavior.AllowGet); 
Please refer the below sample and UG documentation:    
Buvana S. 


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