EasyUI Forum
May 09, 2024, 02:27:58 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Any way to use edatagrid with non-POST services (DELETE, PUT etc.?  (Read 7038 times)
bbones
Newbie
*
Posts: 11


View Profile Email
« on: April 06, 2015, 12:42:58 AM »

Hi!

I have a delete service with request method DELETE. May I tune edatagrid use destroyURL with method="DELETE" or I need define onDestroy with ajax call?

Tnx in advance
bbones
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: April 06, 2015, 03:25:45 AM »

Only the POST method is supposed in the edatagrid plugin.
Logged
bbones
Newbie
*
Posts: 11


View Profile Email
« Reply #2 on: April 06, 2015, 05:08:35 AM »

Ok, tnx, it works fine with

Code:
		
onDestroy : function(index,row){
$.ajax({
url : "/protofront/service/requests/"+row.orderId,
method : "DELETE"
});
}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!