<?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: add  / edit records</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records</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/add-edit-records/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Pilot on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p9811</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p9811</guid>
        	        	<description><![CDATA[<p><a href="http://github.com/tonytomov/jqGrid/tree/master/css/" rel="nofollow" target="_blank"><a href="http://github.com/tonytomov/jq" rel="nofollow">http://github.com/tonytomov/jq</a>.....aster/css/</a> look here</p>
]]></description>
        	        	<pubDate>Thu, 17 Sep 2009 17:05:10 +0300</pubDate>
        </item>
        <item>
        	<title>andthereitgoes on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7775</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7775</guid>
        	        	<description><![CDATA[<p>where do i find the css for searchFilter?</p>
<p>i am using ui.jqgrid.css in theme folder with redmond theme</p>
]]></description>
        	        	<pubDate>Sat, 11 Jul 2009 02:12:08 +0300</pubDate>
        </item>
        <item>
        	<title>tony on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7692</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7692</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Be a sure that the css file is loaded. Also if you use css from css directory you need to load the css for the serchFilter too.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 08 Jul 2009 05:25:15 +0300</pubDate>
        </item>
        <item>
        	<title>andthereitgoes on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7631</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7631</guid>
        	        	<description><![CDATA[<p>i also have another problem. if you see the code above for trnDate i use dataInit function to initialize a dateficker for the add/edit form.</p>
<p>the problem is now when i open the form the datepicker initializes automatically and opens up ( i think its to do with the field receiving focus )</p>
<p>another problem is, when i load the grid for the first time, the &#39;add form opens automatically by default without hitting add button in the navigator.</p>
<p>heres what i am doing to add a new row using editorGrid()</p>
<p>jQuery(&#8221;#listtrns&#8221;).jqGrid({<br />&#160;&#160;&#160; loadui:&#39;block&#39;,<br />&#160;&#160;&#160; height:690,<br />&#160;&#160; &#160;&#160;&#160; url:&#39;trn.php?q=1&#39;,<br />&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Id&#39;,&#39;Date&#39;, &#39;Trn&#39;, &#39;Amount&#39;,&#39;Tags&#39;,&#39;Type&#39;, &#39;Code&#39;],<br />&#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.id&#39;,index:&#39;t.id&#39;, width:50, editable:false, editoptions:{readonly:true,size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.trnDate&#39;,index:&#39;t.trnDate&#39;, width:130, formatter:&#39;date&#39;, editable:true, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; searchoptions:{dataInit:function(el){$(el).datepicker({dateFormat:&#39;yy-mm-dd&#39;});}}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; editoptions:{size:12, dataInit:function(el){$(el).datepicker({dateFormat:&#39;yy-mm-dd&#39;});}} },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.trn&#39;,index:&#39;t.trn&#39;, width:190, editable:true,editoptions:{size:30} },<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.amount&#39;,index:&#39;t.amount&#39;, width:80, formatter:&#39;currency&#39;, editable:true, editoptions:{size:10}},<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.tags&#39;,index:&#39;t.tags&#39;, width:180, sortable: false, editable:true, edittype:"textarea", editoptions:{rows:"2",cols:"30"}},<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.type&#39;,index:&#39;t.type&#39;, width:80, editable:true, edittype:"select",editoptions:{value:"OUT:OUT;IN:IN"}},<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;b.accountCode&#39;,index:&#39;b.accountCode&#39;, width:80, searchable:false, editable:false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;edittype:"select",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{value:{5:"Cash",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;1:"Current",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;2:"Saving",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;3:"CRD",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;4:"NRO"}}}<br />&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pagertrns&#39;),<br />&#160;&#160; &#160;&#160;&#160; sortname: &#39;t.trnDate&#39;,<br />&#160;&#160;&#160; sortorder: &#8220;desc&#8221;,<br />&#160;&#160;&#160; editurl:&#8221;trn.php?q=2&#8243;,<br />&#160;&#160;&#160; caption: &#8220;trns&#8221;<br />});</p>
<p>//think the problem is here.<br />jQuery(&#8221;#listTransactions&#8221;).editGridRow(&#8221;new&#8221;);&#160;&#160;&#160; jQuery(&#8221;#listtrns&#8221;).navGrid(&#8221;#pagertrns&#8221;,<br />&#160;&#160;&#160; &#160;&#160;&#160; {edit: true, add: true, del: true,search:true,refresh:true},<br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280,reloadAfterSubmit:false}, // edit options <br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280,reloadAfterSubmit:false}, // add options <br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280,reloadAfterSubmit:false}, //del options <br />&#160;&#160;&#160; &#160;&#160;&#160; {multipleSearch:true})</p>
<p>i will try using without the doted notation, but then that would give a problem in a complex query where i join 2 or more tables, isnt it?</p></p>
]]></description>
        	        	<pubDate>Thu, 02 Jul 2009 14:18:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7612</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7612</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. I see where is the problem - in the definition of the name property.</p>
<p>Actually it is a bug. Permanently you should use non doted name i.e replace</p>
<p>name:&#39;t.id&#39; with name:&#39;id&#39; - do this for all fields</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 02 Jul 2009 03:54:05 +0300</pubDate>
        </item>
        <item>
        	<title>andthereitgoes on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7581</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7581</guid>
        	        	<description><![CDATA[<p>using 3.5 beta. unfortunately cant post a link; but heres the sample JSON data</p>
<p>{"page":"1","total":275,"records":"137","rows":[{"id":"1283","cell":["1283","2009-10-31 00:00:00","payment","250.98","payment","out","BUCURR"]},{"id":"1123","cell":["1123","2009-03-17 00:00:00","ticket","33.00","ticket","out","BCC"]},{"id":"1119","cell":["1119","2009-03-17 00:00:00","Lunch","4.65","Lunch","out","CASH"]},{"id":"1120","cell":["1120","2009-03-17 00:00:00","food","3.75","food","out","MCC"]},{"id":"1121","cell":["1121","2009-03-17 00:00:00","gas","20.00","gas","out","MCC"]}]}</p>
<p>heres the javascript for the data.</p>
<p>jQuery("#listtrns").jqGrid({<br />&#160;&#160;&#160; loadui:&#39;block&#39;,<br />&#160;&#160;&#160; height:690,<br />&#160;&#160; &#160;&#160;&#160; url:&#39;trn.php?q=1&#39;,<br />&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Id&#39;,&#39;Date&#39;, &#39;Trn&#39;, &#39;Amount&#39;,&#39;Tags&#39;,&#39;Type&#39;, &#39;Code&#39;],<br />&#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.id&#39;,index:&#39;t.id&#39;, width:50, editable:false, editoptions:{readonly:true,size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.trnDate&#39;,index:&#39;t.trnDate&#39;, width:130, formatter:&#39;date&#39;, editable:true, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; searchoptions:{dataInit:function(el){$(el).datepicker({dateFormat:&#39;yy-mm-dd&#39;});}}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; editoptions:{size:12, dataInit:function(el){$(el).datepicker({dateFormat:&#39;yy-mm-dd&#39;});}} },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.trn&#39;,index:&#39;t.trn&#39;, width:190, editable:true,editoptions:{size:30} },<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.amount&#39;,index:&#39;t.amount&#39;, width:80, formatter:&#39;currency&#39;, editable:true, editoptions:{size:10}},<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.tags&#39;,index:&#39;t.tags&#39;, width:180, sortable: false, editable:true, edittype:"textarea", editoptions:{rows:"2",cols:"30"}},<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;t.type&#39;,index:&#39;t.type&#39;, width:80, editable:true, edittype:"select",editoptions:{value:"OUT:OUT;IN:IN"}},<br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;b.accountCode&#39;,index:&#39;b.accountCode&#39;, width:80, searchable:false, editable:false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;edittype:"select",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{value:{5:"Cash",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;1:"Current",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;2:"Saving",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;3:"CRD",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;4:"NRO"}}}<br />&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pagertrns&#39;),<br />&#160;&#160; &#160;&#160;&#160; sortname: &#39;t.trnDate&#39;,<br />&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160; editurl:"trn.php?q=2",<br />&#160;&#160;&#160; caption: "trns"<br />});<br />jQuery("#listtrns").navGrid("#pagertrns",<br />&#160;&#160;&#160; &#160;&#160;&#160; {edit: true, add: true, del: true,search:true,refresh:true},<br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280,reloadAfterSubmit:false}, // edit options <br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280,reloadAfterSubmit:false}, // add options <br />&#160;&#160;&#160; &#160;&#160;&#160; {height:280,reloadAfterSubmit:false}, //del options <br />&#160;&#160;&#160; &#160;&#160;&#160; {multipleSearch:true});</p>
</p>
<p>PS: i am also setting jgrid.defaults hence some of the setting are missing in the code above</p></p>
]]></description>
        	        	<pubDate>Wed, 01 Jul 2009 17:56:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7411</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7411</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Which version. Can you provide a link to the problem?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 23 Jun 2009 03:16:00 +0300</pubDate>
        </item>
        <item>
        	<title>andthereitgoes on add  / edit records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7396</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-edit-records#p7396</guid>
        	        	<description><![CDATA[<p>i am using add and edit options.</p>
<p>when i load the grid first time and click on Add ( to add a new record ) the form appears with empty fields ( as expected )</p>
<p>Then i select a row and click edit. The form appears with appropriate fields populated ( as expected )</p>
<p>But after this, when i click on Add ( to add new record ) the form doesnt get reset and appears with previous values still populated in the form fields.</p>
<p>Any ideas?</p>
]]></description>
        	        	<pubDate>Mon, 22 Jun 2009 15:10:10 +0300</pubDate>
        </item>
</channel>
</rss>