Hi Nitin,
Greetings from Syncfusion support,
We have validated your reported queries,
Query 1 : “I am using DataManager to get data from backend (UrlAdaptor) where I have set url for fetching all data and crudUrl for all CRUD operations. So my problem is whenever I drag/drop or update data from edit popup, I have to reload all the data again which does not makes sense. We may have to load 3000 to 5000's of data. I tried to use enablePersistence='true' but no luck with that. Can you tell us like how can we achieve this without having to get all data again after each drag/drop or update from modal popup. This is the biggest obstacle for us.”
By default, the data fetched from remote data and bound to the Kanban component using url property of DataManager. You can perform CRUD operation in Kanban can be mapped from the server-side controller actions using the properties insertUrl, updateUrl, removeUrl and crudUrl.
InsertUrl – You can perform insertion operation on server-side.
UpdateUrl – You can update the data on server-side.
RemoveUrl – You can remove the data on server-side.
CrudUrl – You can perform bulk data operation on server-side.
Note : First you need to run the service project. And then run the sample.
Kindly try the above solution and get back to us if you need any further assistance.
If you are still facing the reported issue, can you please share us the few more details regarding the reported query “I have to reload all the data again which does not makes sense.” ?
- Can you please share us the video demo of the issue reproducing scenario ?
- Have you faced any time delay after the cards drag and drop action ?
The above details will be helpful for us to assist you better.
Query 2: ”When using custom popup, we have few fields which are dropdowns, img fields,etc and using some other tool to bind them. So when we click on save, it is not getting refreshed in kanban view. I understand that we need to bind exact property names as provided in kanban view but in case of dropdown where we usually store ID as [value] or for ex, say an image byte array, if we change the contact, then we need to refresh the image as well. In this case, I was not able to refresh only that particular card. Can you suggest how this can be achieved? PS: My custom popup is a different component which gets loaded as a child component. As a temporary fix, I have created my own save button and on click of that, I am binding all data which I have loaded in kanban view and then doing kanbanObj.UpdateCard(data). ”
Can you please share us few more details regarding the reported query “we usually store ID as [value] or for ex, say an image byte array, if we change the contact, then we need to refresh the image as well”. We have also provided template support for the Kanban dialogs. Have you faced any issue while using the below Kanban templates ? .Check the below documentation for reference.
Query 3: ” Is there a way to paginate kanban board? As mentioned in my previous point, we have to load 3000 - 5000 records.”
Currently, pagination is not supported in the Kanban component. You can enable the scrollbars, when loading the large data. We have considered “Pagination support in the Kanban component” as a feature request from our end and logged the report for the same, and the feature will be included in any of the upcoming releases.
Please get back to us if you face any difficulties,
Regards,
Indrajith