EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Jakob on April 04, 2013, 05:58:29 AM



Title: Pass multiple parameters to Controller class while removing records
Post by: Jakob on April 04, 2013, 05:58:29 AM
Hello

How can I pass multiple parameters while removing records from datagrid?

This is the code I have taken from example
Code:
$.post('controller?flag=remove',{id:row.id},function(result){

My columns which are defined in html tables are prjId and prjDate which I would like to pass to my controller.

How can I do this?

P.S. When I looking Firebug console I could see only remove being passed as parameter.

Thanks


Title: Re: Pass multiple parameters to Controller class while removing records
Post by: stworthy on April 04, 2013, 06:13:24 AM
Please try the code below:
Code:
$.post('controller',{
  flag: 'remove',
  id: row.id,
  prjId: row.prjId,
  prjDate: row.prjDate
},function(result){
  //...
});


Title: Re: Pass multiple parameters to Controller class while removing records
Post by: Jakob on April 04, 2013, 07:46:16 AM
Thanks stworthy, this helped.