<?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 a row to grid and update table</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/add-a-row-to-grid-and-update-table</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/discussion/add-a-row-to-grid-and-update-table/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>iccsi on add a row to grid and update table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/add-a-row-to-grid-and-update-table#p29250</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/add-a-row-to-grid-and-update-table#p29250</guid>
        	        	<description><![CDATA[<p>Thanks for the message and help,</p>
<p>I understand, I need use jQuery.ajax to post data to the database and use add row to the grid,</p>
<p>Thanks again for helping,</p>
</p>
<p>Regards,</p>
</p>
<p>Iccsi,</p>
]]></description>
        	        	<pubDate>Thu, 01 Aug 2013 04:22:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on add a row to grid and update table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/add-a-row-to-grid-and-update-table#p29239</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/add-a-row-to-grid-and-update-table#p29239</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>jqGrid is client side component ad it does not support any operation to database.</p>
<p>In order to do this you will need first to update the database using ajax and if the update is succesfully you can add the row to the grid.</p>
<p>This can look like:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8296' value='Select Code' data-codeid='sfcode8296' /></p>
<div class='sfcode' id='sfcode8296'>
<p>var datarow = {id:"99&#8243;,invdate:"2007-09-01&#8243;,name:"test3&#8243;,note:"note3&#8243;,amount:"400.00&#8243;,tax:"30.00&#8243;,total:"430.00&#8243;};</p>
<p>jQuery.ajax({</p>
<p>url: "url_to_the_server",</p>
<p>data: datarow,</p>
<p>success: function(...){</p>
<p>// here you can add the&#160; row in the grid in order to synchronize:</p>
<p>jQuery("#list5&#8243;).jqGrid(&#39;addRowData&#39;,99,datarow);</p>
<p>}</p>
<p>...</p>
<p>});</p>
</p>
</div>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 31 Jul 2013 13:44:24 +0300</pubDate>
        </item>
        <item>
        	<title>iccsi on add a row to grid and update table</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/add-a-row-to-grid-and-update-table#p29238</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/add-a-row-to-grid-and-update-table#p29238</guid>
        	        	<description><![CDATA[<p>jQuery("#a4").click( function(){ 	var datarow = {id:"99",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}; 	var su=jQuery("#list5").jqGrid(&#39;addRowData&#39;,99,datarow); 	if(su) alert("Succes. Write custom code to add data in server"); else alert("Can not update");</p>
</p>
<p>I went to jQuery Grid demo web site and learn to add a record using above method.</p>
<p>It added a row to the grid, but not update database.</p>
<p>Is it possible to add a row to the grid and update table?</p>
<p>Your help and information is great appreciated,</p>
</p>
<p>Regards,</p>
</p>
<p>Iccsi,</p>
]]></description>
        	        	<pubDate>Wed, 31 Jul 2013 02:35:02 +0300</pubDate>
        </item>
</channel>
</rss>