<?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 Record to database + asmx webmethod.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-record-to-database-asmx-webmethod</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-record-to-database-asmx-webmethod/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sengaia on Add Record to database + asmx webmethod.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-record-to-database-asmx-webmethod#p29229</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-record-to-database-asmx-webmethod#p29229</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>After doing a lot of research and not being able to find what i&#39;m looking for i decided to ask for help here. What i&#39;m trying to achieve is Add New Records to database using jqGrid. I was able to set the columns using the editable: true property and then using</p>
<p>&#160;$("#gvResults").navButtonAdd("#resultsPager", {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; buttonicon: "ui-icon-plus",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onClickButton: function () {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#gvResults").jqGrid("editGridRow", "new", {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;DataServices/DataServices/InsertResult&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 230,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; reloadAfterSubmit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; closeOnEscape: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; resize: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; afterShowForm: function (form) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;.ui-widget-overlay&#39;).addClass(&#39;custom-overlay&#39;);<br />&#160;&#160;&#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; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; position: "last"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; })</p>
</p>
<p>to show an &#39;Add Record&#39; dialog, where the user can insert the data accordingly. What i&#39;m not understanding is how i should pass in the data to the webmethod.&#160; However i&#39;m not getting this and i haven&#39;t found any tutorials which actually feature this. any idea please?</p>
]]></description>
        	        	<pubDate>Mon, 29 Jul 2013 15:09:56 +0300</pubDate>
        </item>
</channel>
</rss>