<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Passing additional parameters with inline delete action</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Passing additional parameters with inline delete action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action#p31257</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action#p31257</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry for delay. It seemes I have missed this post.</p>
<p>Â </p>
<p>1. If you want to send only the childId you can just this field to be a rowid.</p>
<p>Â </p>
<p>This can be easy achieved if you set key:true in colModel like this</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7446' value='Select Code' data-codeid='sfcode7446' /></p>
<div class='sfcode' id='sfcode7446'>
Â </p>
<p>colModel: [<br />
{name: 'childId', index: 'childId', align: 'center', sorttype: 'string', key:true},</p>
</div>
<p>2. Another solution In delete options is to use onclickSubmit event which should return object with the desired data which then will be passed to the post. See <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#delgridrow" target="_blank">here</a></p>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 21 Oct 2014 17:13:00 +0300</pubDate>
        </item>
        <item>
        	<title>melchoir55 on Passing additional parameters with inline delete action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action#p31226</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action#p31226</guid>
        	        	<description><![CDATA[<p>Is this not getting attention because it is impossible, or against best practice for jqgrid? If so, I would appreciate someone posting to let me know. It seems very fragile to me to base deletion actions on row numbers which could conceivably change between the time the table is rendered and the time the deletion request occurs. As such, I'd like to identify the record by a column value rather than row number.</p>
]]></description>
        	        	<pubDate>Wed, 15 Oct 2014 08:27:36 +0300</pubDate>
        </item>
        <item>
        	<title>melchoir55 on Passing additional parameters with inline delete action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action#p31207</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-additional-parameters-with-inline-delete-action#p31207</guid>
        	        	<description><![CDATA[<p>I have a jqgrid with an inline delete button. This button sends a post to a php file which would, in turn, go delete the record from the database. Unfortunately, I cannot seem to figure out how to send additional data with the post call. I don't want to rely on the row number. Rather, I wish to add the value from a column (childId) to the POST. Can someone recommend how to send, for example, the value of the childId cell for the deleted row along with the post?</p>
<p>Here is my table:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5065' value='Select Code' data-codeid='sfcode5065' /></p>
<div class='sfcode' id='sfcode5065'>jQuery("#team").jqGrid({<br />
 url: 'TeamRetrieval.php?userId='+userId,<br />
 datatype: "json",<br />
 colNames: ['User Id', 'Email', 'Created', 'Delete'],<br />
 colModel: [<br />
 {name: 'childId', index: 'childId', align: 'center', sorttype: 'string'},<br />
 {name: 'user_email', index: 'user_email', align: 'center', sorttype: 'string'},<br />
 {name: 'user_registered', index: 'user_registered', align: 'center', sorttype: 'string'},<br />
 { name: 'delete', formatter: 'actions', width: 40, align:'center', sortable: false,<br />
 formatoptions:{<br />
 keys: true,<br />
 editbutton: false,<br />
 editformbutton: false,<br />
 delbutton: true,<br />
 delOptions: { url: 'TeamRetrieval.php?userId='+userId}<br />
 }<br />
 }<br />
 ],<br />
 mtype: "GET",<br />
 sortorder: 'asc',<br />
 sortname: 'childId',<br />
 caption: "Existing Team Members",<br />
});</div>
]]></description>
        	        	<pubDate>Tue, 07 Oct 2014 21:00:04 +0300</pubDate>
        </item>
</channel>
</rss>