<?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: Delete how to?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/delete-how-to</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/delete-how-to/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>playdog on Delete how to?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p23604</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p23604</guid>
        	        	<description><![CDATA[<p>if($_POST[&#39;oper]=="add"){</p>
</p>
<p>What is &#160; &#160;&#39;oper&#39; &#160; &#160; ????</p></p>
]]></description>
        	        	<pubDate>Tue, 14 Jun 2011 23:24:38 +0300</pubDate>
        </item>
        <item>
        	<title>vocoder21 on Delete how to?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p9953</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p9953</guid>
        	        	<description><![CDATA[<p>thank you very much 🙂</p>
<p>it works 🙂</p>
]]></description>
        	        	<pubDate>Mon, 21 Sep 2009 11:57:11 +0300</pubDate>
        </item>
        <item>
        	<title>uruguay on Delete how to?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p9892</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p9892</guid>
        	        	<description><![CDATA[<p>HI.</p>
<p>I do it this way:</p>
<p>if($_POST[&#39;oper]=="add"){</p>
<p>//insert</p>
<p>}else if($_POST[&#39;oper&#39;]=="edit"){</p>
<p>//update</p>
<p>}else if ($_POST[&#39;oper&#39;]=="del"){</p>
<p>//delete</p>
<p>}</p>
]]></description>
        	        	<pubDate>Sun, 20 Sep 2009 12:27:04 +0300</pubDate>
        </item>
        <item>
        	<title>vocoder21 on Delete how to?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p9889</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-how-to#p9889</guid>
        	        	<description><![CDATA[<p>hi all!</p>
<p>I am new in jqgrid and i need some help 🙂</p>
<p>I have a datagrid to add,delete and edit customers.</p>
<p>I am using the mavigation buttons for these works.</p>
<p>My javascript code is the following :</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3562' value='Select Code' data-codeid='sfcode3562' /></p>
<div class='sfcode' id='sfcode3562'>&#60;script type="text/javascript"&#62;<br />jQuery(document).ready(function () { <br />&#160; jQuery("#listcust").jqGrid ( {<br />&#160;&#160;&#160; url:&#39;xml/customers_xml.php&#39;,<br />&#160;&#160;&#160; datatype: "xml",<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames:[&#39;&#922;&#916;&#937;.&#39;,&#39;&#927;&#925;&#927;&#924;&#913;&#932;&#917;&#928;&#937;&#925;&#933;&#924;&#927;&#39;,&#39;&#932;&#919;&#923;&#917;&#934;&#937;&#925;&#927;&#39;,&#39;E-MAIL&#39;,&#39;&#916;&#921;&#917;&#933;&#920;&#933;&#925;&#931;&#919;&#39;,&#39;&#931;&#919;&#924;&#917;&#921;&#937;&#931;&#917;&#921;&#931;&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;custid&#39;, index:&#39;custid&#39;, width:90, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;custname&#39;, index:&#39;custname&#39;, width:90, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;custphone&#39;, index:&#39;custphone&#39;, width:90, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;custmail&#39;, index:&#39;custmail&#39;, width:90, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;custaddress&#39;, index:&#39;custaddress&#39;, width:90, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;custnotes&#39;, index:&#39;custnotes&#39;, width:190, editable:true,editoptions:{size:25}}<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: jQuery(&#39;#pager1&#39;),<br />&#160;&#160;&#160; rowNum:20,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;custid&#39;,<br />&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; height: 440,<br />&#160;&#160;&#160; loadtext: "&#934;ÏŒ&#961;&#964;&#969;&#956;&#945; &#916;&#949;&#948;&#959;&#956;Î­&#957;&#969;&#957;...",<br />&#160;&#160;&#160; editurl:"xml/edit_customers_xml.php",<br />&#160;&#160;&#160; addurl:"xml/add_customers_xml.php",<br />&#160;&#160;&#160; caption: &#39;&#923;&#921;&#931;&#932;&#913; &#928;&#917;&#923;&#913;&#932;&#937;&#925;&#39;<br />&#160; })<br />&#160; .navGrid(&#39;#pager1&#39;,{view:true, del:true, clearAfterAdd:true, search: true,add:true,closeAfterEdit:true}, <br />{height:280,reloadAfterSubmit:true},<br />{height:280,reloadAfterSubmit:true},<br />{height:280,reloadAfterSubmit:false},&#160; // delete instead that del:false we need this<br />{multipleSearch : true}, // enable the advanced searching<br />{closeOnEscape:true} /* allow the view dialog to be closed when user press ESC key*/<br />);</p>
<p>//&#160; $("#bedata").click(function(){ <br />//&#160; &#160;&#160;&#160; var gr = jQuery("#listcust").getGridParam(&#39;selrow&#39;); <br />//&#160;&#160;&#160; &#160; if( gr != null ) jQuery("#listcust").editGridRow(gr,{height:280,reloadAfterSubmit:false}); <br />//&#160;&#160;&#160; &#160; else alert("&#928;&#945;&#961;&#945;&#954;&#945;&#955;ÏŽ &#949;&#960;&#953;&#955;Î­&#958;&#964;&#949; &#954;Î¬&#960;&#959;&#953;&#945; &#949;&#947;&#947;&#961;&#945;&#966;Î® &#960;&#961;ÏŽ&#964;&#945;"); <br />//&#160;&#160;&#160; }); <br />&#160; <br />});</p>
<p>&#60;/script&#62;</p>
</div>
<p>My edit page has the following code:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2662' value='Select Code' data-codeid='sfcode2662' /></p>
<div class='sfcode' id='sfcode2662'>&#60;?php<br />include ("../includes/db.php");</p>
<p>if ($_POST[custid]=="") {</p>
<p>//insert new row sql code</p>
<p>}<br />else {</p>
<p>//edit row sql code</p>
<p>}</p>
<p>&#160; ?&#62;</p>
</div>
<p>So if the custid is empty i call the add new row mysql code . id the custid has a valid id i call the edit mysql code. My question is how i inspect the delete ? what may i GET or POST for delete?</p>
</p>
<p>Sorry for my bad english</p>
]]></description>
        	        	<pubDate>Sun, 20 Sep 2009 05:14:17 +0300</pubDate>
        </item>
</channel>
</rss>