We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

datamanager removeurl not send data (SOLVED)

Hello there, 
everything is ok but when I send remove requests.
method doesn't send any data

PAYLOAD: 

  • {action: "remove"}
  • REQUEST:
    1. Request URL:
      http://localhost:8100/api/categories/delete
    2. Request Method:
      POST
    3. Status Code:
      200 OK
    4. Remote Address:
      [::1]:8100
    5. Referrer Policy:
      no-referrer-when-downgrade

    3 Replies

    BS Balaji Sekar Syncfusion Team February 11, 2020 03:55 PM UTC

    Hi kamiyar, 
     
    Thanks for contacting us. 
     
    We could see that you have shared documentation link for URL Adaptor.  But from the shared network screenshot, we suspect that you are using webApi service. Could you please share the below details. 
     
    1. Share the complete Grid code,
    2. Console errors thrown (if any)
     
    For your reference we have prepared the sample with webApi adaptor, with crud actions. Please find the below sample. 
     
     
    Please get back to us, with the requested details, which will help us to understand your requirement, and provide a better suggestion as soon as possible. 
     
    Regards, 
    Balaji Sekar. 



    KH kamiyar heidarnezhad February 12, 2020 02:42 PM UTC

    Hello Again!,

    thank you for your fast response:
    1- my code is attached.
    2- I don't get any error in the console.

    Attachment: category_bd65791f.rar

    UPDATE:
    when I select multi-rows and click the Delete button. request send this payload:

    {"changed":[],"added":[],"deleted":[{"id":13,"title":"asd2","en_name":"cat-5e417742d6d78"},{"id":12,"title":"dfs","en_name":"cat-5e41773ae7f49"}],"action":"batch"}

    but when select just one row, request send this payload:

    {"action":"remove"}

    PROBLEM SOLVED!
    after too many searches and saw a lot of examples, I found my problem.
    and the problem is I forgot to set a primary key in e-column
    Hope this useful for the others.
    thanks for your answers and time,

    Regards,
    Kamiyar


    BS Balaji Sekar Syncfusion Team February 13, 2020 10:42 AM UTC

    Hi kamiyar,  
     
    Thanks for your update.  
     
    We are happy to hear that you have found the solution on your own. Also we appreciate your efforts to help others.  
     
    Please get back to us, if you need further assistance.  
     
    Regards,  
    Balaji Sekar. 


    Loader.
    Up arrow icon