Enforce TaskID returned by server after adding a task

Hi,

When adding a task to a remote server using DataManager and CRUD, is it possible to assign an id returned by the server to the newly added task? We have different Job and Task entities on the server so we need to generate unique ids for the Gantt tasks based on the entity ids. I know there is the updateTaskId method that might help but I can't figure how to plug it to the end of the task adding operation. 

Thanks.

2 Replies

LG Logeswari Gopalakrishnan Syncfusion Team May 25, 2020 12:47 PM UTC

Hi Dmitry, 
 
We have analyzed your query and already we have logged bug report for passing additional parameter to server side on CRUD operation and you can find the status of this bug from below feedback link.  
 
 
It will be included in our upcoming weekly patch release which is expected to be rolled out on May 27, 2020.  
 
Until then we appreciate your patience.  
 
Regards, 
Logeswari G 



LG Logeswari Gopalakrishnan Syncfusion Team May 27, 2020 01:58 PM UTC

Hi Dmitry,  
 
Thanks for your patience. 
 
The issue reported in the feedback 14539 has been fixed in the version v18.1.54. Please find the release notes from below link. 
 
 
 
We can pass additional parameter to the CRUD model as like below code example. 
 
public class CRUDModel 
{ 
   public List<Data> Added { get; set; } 
   public List<Data> Changed { get; set; } 
   public List<Data> Deleted { get; set; } 
   //... 
   public IDictionary<string, object> @params { get; set; } 
} 
 
 
 
We have also prepared a sample with latest source,  Please find the sample from below link. 
 
 
 
Regards, 
Logeswari G 


Loader.
Up arrow icon