<?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: editRow/saveRow/jgrid_array questions</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions</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/editrowsaverowjgrid_array-questions/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on editRow/saveRow/jgrid_array questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21148</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21148</guid>
        	        	<description><![CDATA[<p>Hi wakelt,</p>
<p>the problem with full working examples is that the code will consist not only from the client jqGrid code, but from the server code written in one technology and assessing one type of database also with one technology. I personally not use PHP and MySQL. I use more Windows and Microsoft .NET technologies. If I find a Java code it will help me not really. Some code can be written very close to XML. If other need JSON the code must be also adapted.</p>
<p>If I use for example .NET on the server side I have many choices. The most important are: ASP.NET MVC, WFC service or ASMX web service. The access to the Microsoft SQL Server could be using LINQ to SQL, Entity Framework, with SqlDataAdapter or SqlCommand and SqlDataReader. You can implement ASP.NET MVC, WFC service as RESTful services or not. I can continue. What I want to say is there are too many design choices which you have to made. All there will follow to different server code in many possible languages.</p>
<p>It is a main reason why it is difficult to find the whole code example which you can use.</p>
<p>If you use .NET, C# and some from above listed technologies I could post you some links where you will find the corresponding working code.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 05 Dec 2010 01:58:37 +0200</pubDate>
        </item>
        <item>
        	<title>wakelt on editRow/saveRow/jgrid_array questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21147</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21147</guid>
        	        	<description><![CDATA[<p>Hi Oleg;</p>
<p>Thank you for being so helpful. I used the setGridParameter to alter the URL. I didn&#39;t have any luck using the postData property. I got the URL stuff figured out somewhat.</p>
</p>
<p>I did run into a brick wall&#160;this morning&#160;when I realize that the entire grid needs to be returned. My hope was that the row I was editing would go to the server, get worked on, and sent back to replace the source row. I could not find a simple way to merge the newly edited row with the other 3 rows that were not involved in the inline edit. Without this capability, jqgrid doesn&#39;t really help me. Do you know of an "easy" way to make this happen.</p>
</p>
<p>In the meantime, I&#39;ve been rolling my own using lots of javascript and some php. I sure would like to use the open source, but there isn&#39;t sufficient documentation to get me over the many hurdles of learning the open source code. I think some start to finish working examples (that demonstrate to/from server) interaction would be really helpful. I know people do this stuff on their own time so I not complaining...just wishing 🙂</p>
]]></description>
        	        	<pubDate>Sun, 05 Dec 2010 01:12:19 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on editRow/saveRow/jgrid_array questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21141</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21141</guid>
        	        	<description><![CDATA[<p>Hello wk,</p>
<p>the second GET request after the POST to editurl will be done probebly because you use form editing with the default edit parameter reloadAfterSubmit:true. If you change it to <strong>reloadAfterSubmit:false</strong>.</p>
<p>I don&#39;t really understand what do you mean under "URL i&#160;used to load some dummy data into the table to initialize it". If you need to fill jqGrid with a data from the server, then you should use the <strong>url</strong> parameter. If you need an empty grid, then you should use datatype:&#39;local&#39; intead of datatype:&#39;json&#39; or datatype:&#39;xml&#39;. In the case the grid will be not filled with any data. If you will later do load some data from the server you should change the datatype value from &#39;local&#39; to &#39;json&#39; (or &#39;xml&#39; depend on you server) and reload it. The code will be about following</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9886' value='Select Code' data-codeid='sfcode9886' /></p>
<div class='sfcode' id='sfcode9886'>jQuery(&#34;#list&#34;).jqGrid(&#39;setGridParam&#39;,{url:&#39;myService/blabla&#39;,datatype:&#39;json&#39;}).trigger(&#39;reloadGrid&#39;);</div>
<p>In the way you can change any time the URL used to fill the grid.</p>
<p>If you need to change the URL only to set some server parameters (if the url has the form "base?param1=value1&#38;param2=value2") then you can use use <em>postData</em> parameter additionally to <em>url</em> parameter. For example parameters url:"base", postData: {param1:"value1",param2:"value2"} are equivalent to one parameter url:"base?param1=value1&#38;param2=value2". So sometime the usage of <em>postData</em> parameter (which also can be changed any time) has advantage. In case of the usage of functions inside of postData parameter the changing of the postData can be reduced (see <a href="http://stackoverflow.com/questions/2928371/how-to-filter-the-jqgrid-data-not-using-the-built-in-search-filter-box/2928819#2928819" target="_blank">this old answer</a> as an example).</p>
<p>I hope this information will help you.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Sat, 04 Dec 2010 16:34:26 +0200</pubDate>
        </item>
        <item>
        	<title>wakelt on editRow/saveRow/jgrid_array questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21137</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21137</guid>
        	        	<description><![CDATA[<p>Hi Oleg, i am afraid that I don&#39;t have the same level of jqgrid knowledge as you. The material you pointed me at is unfortunately beyond my grasp at the moment. I am hoping you can simplify for me.</p>
</p>
<p>I have created a grid that I can load and edit. I see the fruits of my edit&#160;posted the editurl (the editurl: is different then the url:) in the grid declaration array&#160;. I then see&#160;another get (for the grid reload)&#160;which goes to the url instead of the editurl.&#160;What steps must I take to get the&#160;reload to go to the editurl instead of the url ???</p>
<p>I see from the example that you create a new jquery.jqrid variable and point it at the existing grid (at least that is what I think is happening). You then reload from the new variable. I set up the new variable, put a different URL in it, to see what would happen. I didn&#39;t see a reload attempt occur ?? Also, I am very fuzzy on postData. The documentation is thin and I don&#39;t know why its useful ????</p>
<p>Any help would be appreciated.</p>
</p>
<p>thanks,</p>
<p>wk</p>
]]></description>
        	        	<pubDate>Sat, 04 Dec 2010 04:36:36 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on editRow/saveRow/jgrid_array questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21136</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21136</guid>
        	        	<description><![CDATA[<p>Yes! All which you ask for is possible. Look at the <a href="/jqgridwiki/doku.php?id=wiki:options" target="_blank">postData</a> parameter and <a href="http://stackoverflow.com/questions/2928371/how-to-filter-the-jqgrid-data-not-using-the-built-in-search-filter-box/2928819#2928819" target="_blank">this</a>&#160;which explain how to use functions as a some properties of the postData parameter. About some other url manipulation see <a href="http://stackoverflow.com/questions/2833254/jqgrid-delete-row-how-to-send-additional-post-data/2834061#2834061" target="_blank">this</a> old answer.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 04 Dec 2010 04:02:11 +0200</pubDate>
        </item>
        <item>
        	<title>wakelt on editRow/saveRow/jgrid_array questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21134</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editrowsaverowjgrid_array-questions#p21134</guid>
        	        	<description><![CDATA[<p>It is my understanding that when editRow is executed, the saveRow will be executed shortly after</p>
<p>(assuming the key field is true). I see the editRow POST go out and things look good. I then see</p>
<p>another&#160;POST go out but it goes to a different URL then the editRow. It goes to an&#160;URL i&#160;used to</p>
<p>load some dummy data into the table to initialize it.&#160;&#160;Is there a way to&#160;use&#160;multiple URLs&#160;to control</p>
<p>where&#160;the grid data gets loaded from if I want some flexibility. Can the url inside the jGrid declaration array</p>
<p>be a javascript variable ??</p>
</p>
<p>thanks, wk</p>
]]></description>
        	        	<pubDate>Sat, 04 Dec 2010 03:51:55 +0200</pubDate>
        </item>
</channel>
</rss>