Hi,
I am using syncfusion Kanban(Javascript) with DataManager(UrlAdaptor) to get data from backend. I need help to resolve following issues:
Please help me to resolve these issues.
Ej2 version: 19.4.48
Thanks & Regards,
Abhijit Deshpande
Hi Vinitha,
Query-1: When I drag a card from one column to another 'Location' field is get updated on server-side. This updated value not shown on UI. To replicate this please refer following sample.
Sample : https://stackblitz.com/edit/pmmemy-97nrql?file=index.html
Server side : Please refer attached file 'ScheduleCRUD_72c1a01e .zip'
Query-2: On single card drag/drop, two requests get sent to server-side. 1st to save updated card data and 2nd to get whole Kanban data, I want to reload only single(updated) card here. Please refer following screenshot.
Screenshot:
Query-3: There is a delay when dragging and dropping. I have added some delay at server-side on update card data. Therefore, card will go back to original position after drop and then goes to new position once data get reloaded as shown below.
Thanks & Regards,
Abhijit Deshpande
| public JsonResult UpdateData(EditParams param) { var value = (param.action == "update") ? param.value : param.changed[0]; var filterData = db.ScheduleEventDatas.Where(c => c.Id == Convert.ToInt32(value.Id)); ScheduleEventData appointment = new ScheduleEventData(); if (filterData.Count() > 0) { appointment = db.ScheduleEventDatas.Single(A => A.Id == Convert.ToInt32(value.Id)); appointment.Subject = value.Subject; // Some custom logic to set location (Ref:Query-1) String location = value.Location; if ("Open".Equals(value.Subject)){ location = "India"; } else if("InProgress".Equals(value.Subject)){ location = "UK"; } else if ("Testing".Equals(value.Subject)){ location = "Australia"; } else if ("Close".Equals(value.Subject)){ location = "US"; }appointment.Location = location; appointment.Description = value.Description; // Adding some delay (Ref:Query-3) System.Threading.Thread.Sleep(2000); } db.SubmitChanges(); System.Diagnostics.Debug.WriteLine(" Action to update card data is called"); return Json(appointment, JsonRequestBehavior.AllowGet); } |
Hi Vinitha,
Thanks for your reply.
Query 1. I have tried the solution suggested by you. But the issue still exists. You can replicate the same with the sample code provided by me in our previous discussion. Please provide me a working solution.
Thanks & Regards,
Abhijit Deshpande