<?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: button "add" and "delete" don't work</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work</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/button-add-and-delete-dont-work/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>missa on button "add" and "delete" don't work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5199</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5199</guid>
        	        	<description><![CDATA[<p>Thank you for your help!!!</p>
<p>I find the solution! I delete <span class="clickable" onclick="dr4sdgryt(event,&#34;Ox&#34;)"><span class="hw">unfortunately jqmodal.js!</span></span></p>
<p>It&#39;s very strupid error!</p>
<p>Thank you for your help!!</p>
]]></description>
        	        	<pubDate>Tue, 10 Mar 2009 08:15:19 +0200</pubDate>
        </item>
        <item>
        	<title>james_ on button "add" and "delete" don't work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5198</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5198</guid>
        	        	<description><![CDATA[<p>It&#39;s case sensitive so you&#39;ll have to write "onSelectRow", not "Onselectrow" ..</p>
]]></description>
        	        	<pubDate>Tue, 10 Mar 2009 06:08:33 +0200</pubDate>
        </item>
        <item>
        	<title>missa on button "add" and "delete" don't work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5195</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5195</guid>
        	        	<description><![CDATA[<p>Thank you for your help!</p>
<p>Is it possible that editrow("new",{url:&#39;delete.php&#39;}) is incompatible with the option:</p>
<p><strong>Onselectrow:function(id){</strong></p>
<p><strong>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(invid &#38;&#38; invid!==lastsel){&#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; var ret = jQuery("#client").getRowData(invid);&#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; jQuery(&#39;#client&#39;).restoreRow(lastsel);&#160;&#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;&#160;&#160; //jQuery(&#39;#client&#39;).editRow(invid,true,pickdates,success,&#39;/paiement/traitement/mise_a_jour_bd.php&#39;,{&#39;invid&#39;:+ret.invid},aftersavefunc,onerrorfunc);<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#client&#39;).editRow(invid,true,pickdates,&#39;&#39;,&#39;/paiement/traitement/mise_a_jour_bd.php&#39;,{&#39;invid&#39;:+ret.invid},&#39;&#39;,onerrorfunc);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; lastsel=invid;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; }<br /></strong></p>
<p><strong>}</strong></p>
<p>Because, nothing work!!!</p>
<p>thank you for your answer!</p>
<p>Aurore</p>
]]></description>
        	        	<pubDate>Tue, 10 Mar 2009 04:11:40 +0200</pubDate>
        </item>
        <item>
        	<title>james_ on button "add" and "delete" don't work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5194</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5194</guid>
        	        	<description><![CDATA[<p>I did a simple test and it worked after replacing..</p>
<p><strong>$(&#8221;#search&#8221;) </strong>with <strong>jQuery</strong><strong>(&#8221;#search&#8221;)<br /></strong>and.. <strong><br /></strong><strong>$(&#8221;#add&#8221;) </strong>with <strong>jQuery</strong><strong>(&#8221;#add&#8221;)</strong></p>
<p>The error is probably in your <strong>/paiement/traitement/server.php</strong></p>
<p>I used local data to test..</p>
]]></description>
        	        	<pubDate>Mon, 09 Mar 2009 17:15:00 +0200</pubDate>
        </item>
        <item>
        	<title>missa on button "add" and "delete" don't work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5189</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5189</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It doesn&#39;t work. Thank you!.</p>
<p>I use the cod extract from this site:</p>
<p><span style="color: #0000ff;"><strong><span style="text-decoration: underline;"><a href="http://trirand.com/jqgrid/jqgrid.html" rel="nofollow" target="_blank">http://trirand.com/jqgrid/jqgrid.html</a></span></strong></span></p>
<p>because I&#39;m a novice in development!</p>
<p>Thank you!</p>
]]></description>
        	        	<pubDate>Mon, 09 Mar 2009 09:29:30 +0200</pubDate>
        </item>
        <item>
        	<title>james_ on button "add" and "delete" don't work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5188</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5188</guid>
        	        	<description><![CDATA[<p>You&#39;re mixing the usage of "jQuery" and "$"?</p>
<p>Perhaps try <strong>jQuery(&#8221;#search&#8221;)</strong><strong></strong> and the same for add.. ?</p>
]]></description>
        	        	<pubDate>Mon, 09 Mar 2009 09:24:02 +0200</pubDate>
        </item>
        <item>
        	<title>missa on button "add" and "delete" don't work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5186</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/button-add-and-delete-dont-work#p5186</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It&#39;s very important. I don&#39;t understand why buttons "add", "delete" "search"&#160; don&#39;t work.</p>
<p>If I don&#39;t find the solution, I will have big problem with my boss. please help me!!! below, it&#39;s my cod:</p>
<p><strong>&#60;script type="text/javascript"&#62;<br />// syntaxe pour creer le GRID<br />jQuery(document).ready(function(){<br />&#160;&#160;&#160; var lastsel;<br />&#160;&#160;&#160; jQuery("#client").jqGrid({<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; url:&#39;/paiement/traitement/server.php?nd=&#39;+new Date().getTime(),<br />&#160;&#160;&#160; &#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;invid&#39;,index:&#39;invid&#39;, width:55,sorttype:"int"},<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90,editable:true,sorttype:"date",formatter:&#39;date&#39;,formatoptions:{newformat: &#39;d/m/Y&#39;}},<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name&#39;, width:100,editable:true,sorttype:"text"},<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",sorttype:"float",editable:true,editrules:{number:true}},<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",sorttype:"float",editable:true,editrules:{number:true}},<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",sorttype:"float",editable:true,editrules:{number:true}},<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false,editable:true}<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pclient&#39;),<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; sortname: &#39;invid&#39;,<br />&#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; imgpath: &#39;/paiement/jqgrid/themes/coffee/images/&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160; &#160;&#160;&#160; caption: "tableau test",&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; onSelectRow: function(invid){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(invid &#38;&#38; invid!==lastsel){&#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; var ret = jQuery("#client").getRowData(invid);&#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; jQuery(&#39;#client&#39;).restoreRow(lastsel);&#160;&#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;&#160;&#160; //jQuery(&#39;#client&#39;).editRow(invid,true,pickdates,success,&#39;/paiement/traitement/mise_a_jour_bd.php&#39;,{&#39;invid&#39;:+ret.invid},aftersavefunc,onerrorfunc);<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#client&#39;).editRow(invid,true,pickdates,&#39;&#39;,&#39;/paiement/traitement/mise_a_jour_bd.php&#39;,{&#39;invid&#39;:+ret.invid},&#39;&#39;,onerrorfunc);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; lastsel=invid;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; &#160;&#160;&#160; editurl: "/paiement/traitement/server.php",<br /><span style="color: #ff0000;">&#160;&#160;&#160; }).navGrid(&#39;#pclient&#39;, {refresh:true,add:true,del:true,search:true,edit:false}</span><br />&#160;&#160;&#160; );&#160;&#160;&#160; </strong></p>
<p><strong><span style="color: #3366ff;">//with button out the nav bar</span></strong></p>
<p><strong>&#160;&#160;&#160; $("#search").click(function(){ <br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#client").searchGrid( <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {sopt:[&#39;cn&#39;,&#39;bw&#39;,&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;gt&#39;,&#39;ew&#39;]}<br />&#160;&#160;&#160; &#160;&#160;&#160; ); <br />&#160;&#160;&#160; });</strong><strong><br />&#160;&#160;&#160; $("#add").click(function(){ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#client").editGridRow("new",{height:280,reloadAfterSubmit:false,addCaption: "Add Record"});<br />&#160;&#160;&#160; }); <br />&#160;&#160;&#160; function pickdates(invid){<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#"+invid+"_invdate","#client").datepicker({dateFormat:"dd/mm/yy"});<br />&#160;&#160;&#160; }<br />&#160;&#160;&#160; function onerrorfunc() {<br />&#160;&#160;&#160; &#160;&#160;&#160; alert(&#39;La mise &#224; jour de la base de donn&#233;es c\\&#39;est mal pass&#233;e!&#39;);&#160;&#160;&#160;&#160;&#160; </strong></p>
<p><strong>&#160;&#160;&#160; }<br />});</strong></p>
<p>Please, help me. It&#39;s very important!!!!!!!! <img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-cry.gif" border="0" alt="Cry" /></p>
<p>thank you all!!</p>
<p>Aurore</p>
]]></description>
        	        	<pubDate>Mon, 09 Mar 2009 08:44:15 +0200</pubDate>
        </item>
</channel>
</rss>