Not IN DB Data Source for Add Action Only

Hello there, 
i want to make grid action with foreign key from datasource (from api) for example :
datasource : [{"id":13,"departmentName":"Accounting","departmentDescription":null},{"id":3,"departmentName":"Production","departmentDescription":null},{"id":4,"departmentName":"Quality Control","departmentDescription":null},{"id":5,"departmentName":"Costumer Service","departmentDescription":null},{"id":6,"departmentName":"Maintenance","departmentDescription":null},{"id":7,"departmentName":"Purchasing","departmentDescription":null},{"id":8,"departmentName":"Asset Management ","departmentDescription":null},{"id":9,"departmentName":"Engineering","departmentDescription":null},{"id":10,"departmentName":"IT","departmentDescription":null},{"id":11,"departmentName":"Healthcare","departmentDescription":null},{"id":2,"departmentName":"Distribution","departmentDescription":"Pemasaran"},{"id":1,"departmentName":"Sales","departmentDescription":"Pemasaran"},{"id":14,"departmentName":"Finance","departmentDescription":null},{"id":16,"departmentName":"Sisdur","departmentDescription":null},{"id":18,"departmentName":"HRD","departmentDescription":null},{"id":20,"departmentName":"Supply Chain","departmentDescription":null},{"id":12,"departmentName":"SHI","departmentDescription":null},{"id":23,"departmentName":"Corporate Strategic","departmentDescription":null},{"id":15,"departmentName":"Internal Audit","departmentDescription":null},{"id":22,"departmentName":"Director Secretary","departmentDescription":null},{"id":19,"departmentName":"GA","departmentDescription":null},{"id":24,"departmentName":"Retail","departmentDescription":null},{"id":21,"departmentName":"Legal/ Risk Management","departmentDescription":null},{"id":17,"departmentName":"SAP","departmentDescription":null}] and i insert to database with the data is "4", and when i try to add again, the id that equals to 4 is disappear, but the relation still has value

1 Reply

VA Venkatesh Ayothi Raman Syncfusion Team August 23, 2018 12:51 PM UTC

Hi Arif, 
 
 
Thanks for using Syncfusion products. 

We have analyzed your query but we are tried to reproduce the reported issue at our end. We have made a video which demonstrates the adding of a record which is already in the database. Please find the attachment for the video demo. 


If you are still facing the issue could you please share the following details that will be helpful for us to provide a better solution as early as possible. 

  1. Share your sample code.
  2. Scenario for issue reproducing.
  3. Replication procedure of the issue.
  4. Are you facing any script error in console window? If so, please share the screenshot of them.
  5. Share the issue video.
  6. Modify the given sample as issue reproducible if possible.

We have also prepared a simple sample for your convenience which can be download from following link, 

Please let us know if you have any further assistance on this. 

Regards, 
Venkatesh Ayothiraman. 


Loader.
Up arrow icon