Hi Team,
I am new to Syncfusion and I am facing some difficulty in implementing the CRUD operations for Kanban component (ej2-angular-kanban). Our server is in spring boot and I am able to get data using the code :
But I am facing difficulty to implement other operations: Add, Edit, Delete. So, if you can provide any example for implementing this functionality then please share some samples.
| app.component.ts private dataManager: DataManager = new DataManager({
url: "http://localhost:54738/Home/LoadData",
updateUrl: "http://localhost:54738/Home/UpdateData",
insertUrl: "http://localhost:54738/Home/UpdateData",
removeUrl: "http://localhost:54738/Home/UpdateData",
adaptor: new UrlAdaptor(),
crossDomain: true });app.component.html <ejs-kanban #kanbanObj [dataSource]="dataManger">
……. </ejs-kanban> |
Hi Gunasekar,
Thank you for sharing the sample.
The API for url property is /LoadData and for updateUrl, insertUrl & deleteUrl properties it is /UpdateData. So, is the api for read operations supposed to be different than for other operations?
url adaptor for read operations.|
private dataManager: DataManager = new DataManager({
url: 'http://localhost:54738/Home/LoadData',
updateUrl: 'http://localhost:54738/Home/UpdateData',
insertUrl: 'http://localhost:54738/Home/InsertData',
removeUrl: 'http://localhost:54738/Home/RemoveData',
adaptor: new UrlAdaptor(),
crossDomain: true
});
|