<?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: no key on delete call</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call</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/no-key-on-delete-call/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>logemann on no key on delete call</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22070</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22070</guid>
        	        	<description><![CDATA[<p>Yeah you are absolutely right. I have done it this way, perhaps not completely finished but it works for my prototype....</p>
</p>
<p>jQuery("#list4").jqGrid(&#39;navGrid&#39;, &#39;#pjmap&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {add:false,edit:false,del:true,search:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype:"DELETE",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; /*<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; serializeDelData: function (postdata) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return "";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, */<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onclickSubmit: function (grid, postdata) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.url = jQuery("#list4").jqGrid(&#39;getGridParam&#39;, &#39;url&#39;) + "/" + postdata;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return {};<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p>Perhaps this might help others too. BTW the documentation for the onclickSubmit event is really worse with regard to signature. 🙂</p>
]]></description>
        	        	<pubDate>Sun, 13 Feb 2011 14:10:25 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on no key on delete call</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22068</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22068</guid>
        	        	<description><![CDATA[<p>Hi Marc,</p>
<p>You can use <strong>onclickSubmit</strong> to append the id to the url and use serializeDelData additionally to clear the body of the HTTP DELETE request. Then you can use mtype:"DELETE" and have jqGrid delete request which will be full conform to RESTfull services. See for example <a href="http://stackoverflow.com/questions/2833254/jqgrid-delete-row-how-to-send-additional-post-data/2834061#2834061" target="_blank">this answer</a>.&#160;You should examine which postdata you have inside of <strong>onclickSubmit</strong>&#160;event handler and decide what data you want append to the url.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 13 Feb 2011 13:09:30 +0200</pubDate>
        </item>
        <item>
        	<title>logemann on no key on delete call</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22065</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22065</guid>
        	        	<description><![CDATA[<p>Ok. Seems my question makes no sense because a DELETE request cant have "POST" data 😉 Furthermore before specifying DELETE, i defined POST of course just to check it but then i obviously made a different mistake. Now POST works but i dont want to use POST 😉&#160; Considered that i really want to use DELETE to call the server, it seems i need to rewrite the URL so that i can append my "key" to the base url, correct?</p>
</p>
<p>Marc</p>
]]></description>
        	        	<pubDate>Sun, 13 Feb 2011 03:34:58 +0200</pubDate>
        </item>
        <item>
        	<title>logemann on no key on delete call</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22064</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/no-key-on-delete-call#p22064</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>i am trying to implement the delete feature but i have problems submitting the key of the row. Of course this should be handled by jqgrid correct? Can you gimme a hint why the resulting request is only the call to the defined URL without any parameter (key) in it?</p>
</p>
<p>$(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list4").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;/foo/country/CountryManager2.app&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl:"/foo/country/CountryManager2.app",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;ISO Num.&#39;,&#39;ISO Alpha&#39;, &#39;Bezeichnung&#39;, &#39;PLZ&#39;,&#39;Waehrung&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;isoCodeNr&#39;,index:&#39;isoCodeNr&#39;, width:85, key:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;nameIsoCode2&#39;,index:&#39;nameIsoCode2&#39;, width:90},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name asc, invdate&#39;, width:180},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;postalCode&#39;,index:&#39;postalCode&#39;, width:80, align:"right"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;currencyName&#39;,index:&#39;currencyName&#39;, width:90, align:"right"}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pjmap&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;nameIsoCode2&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems : false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root:"records",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "currPage",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "totalPages",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "totalRecords",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "0"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "JSON Mapping",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;100%&#39; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list4").jqGrid(&#39;navGrid&#39;, &#39;#pjmap&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {add:false,edit:false,del:true,search:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype:"DELETE"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p>Thx for hints. I googled and tried for hours without success. I still think that i dont need to get into the whole event thing myself (override) because the demos told me that this is not needed. Perhaps i have a problem with my jsonreader not recognizing the key or something.</p>
</p>
<p>Marc</p>
]]></description>
        	        	<pubDate>Sun, 13 Feb 2011 03:17:34 +0200</pubDate>
        </item>
</channel>
</rss>