<?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: can't get updateGridRows to work - help</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cant-get-updategridrows-to-work-help</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/cant-get-updategridrows-to-work-help/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ptmoy on can't get updateGridRows to work - help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cant-get-updategridrows-to-work-help#p26048</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cant-get-updategridrows-to-work-help#p26048</guid>
        	        	<description><![CDATA[<pre>I&#39;m re-posting the last part of my previous post because it got cut off.<br /><br /><br />As mentioned, the data loads correctly into the grid.  But the updateGridRows call doesn&#39;t <br /><br />work for some reason.  Data on the grid doesn&#39;t change.   When I traced the code using firebug, <br /><br />I noticed jqgrid is throwing an error  ("jqGrid - No such method: updateGridRows") here:<br /><br />&#160;$.fn.jqGrid = function( pin ) {
  if (typeof pin == &#39;string&#39;) {
//var fn = $.fn.jqGrid[pin];
var fn = $.jgrid.getAccessor($.fn.jqGrid,pin);
if (!fn) {
    throw ("jqGrid - No such method: " + pin);
}


When I downloaded jqgrid, I checked all boxes (including the "custom" box) as instructed in the Wiki. <br /> <br />What am I doing wrong? <br /><br />BTW, I also tried using setRowData to modify a row; that didn&#39;t work either.  <br /><br />Also, I tried puting the updateGridRowscall inside a loadComplete event handler - same result.  Please help.
</pre>
]]></description>
        	        	<pubDate>Fri, 02 Mar 2012 08:23:50 +0200</pubDate>
        </item>
        <item>
        	<title>ptmoy on can't get updateGridRows to work - help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cant-get-updategridrows-to-work-help#p26047</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cant-get-updategridrows-to-work-help#p26047</guid>
        	        	<description><![CDATA[<p>I&#39;m just leaning to use jqgrid, and have finally got some json data to load correctly using the following html file:</p>
</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&#62;<br />&#60;head&#62;<br />&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;<br />&#60;title&#62;My First Grid&#60;/title&#62;<br />&#160;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="jqgrid/css/redmond/jquery-ui-1.8.18.custom.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="jqgrid/css/ui.jqgrid.css" /&#62;<br />&#160;<br />&#60;style type="text/css"&#62;<br />html, body {<br />&#160;&#160;&#160; margin: 0;<br />&#160;&#160;&#160; padding: 0;<br />&#160;&#160;&#160; font-size: 75%;<br />}<br />&#60;/style&#62; <br />&#60;script src="jqgrid/js/jquery-1.5.2.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jqgrid/js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jqgrid/js/jquery.jqGrid.src.js" type="text/javascript"&#62;&#60;/script&#62; <br />&#60;script type="text/javascript"&#62;<br />$(function(){ <br />&#160; $("#list").jqGrid({<br />&#160;&#160;&#160; url:&#39;<a href="http://192.168.37.25:8000/jqgridData.yaws&#038;#039" rel="nofollow" target="_blank"><a href="http://192.168.37.25:8000/jqgr" rel="nofollow">http://192.168.37.25:8000/jqgr</a>.....&#038;#039</a>;,<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames:[&#39;Col1&#39;,&#39;Col2&#39;, &#39;Col3&#39;,&#39;Col4&#39;,&#39;Col5&#39;,&#39;Col6&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;c1&#39;, index:&#39;c1&#39;, width:75}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;c2&#39;, index:&#39;c2&#39;, width:75}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;c3&#39;, index:&#39;c3&#39;, width:75}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;c4&#39;, index:&#39;c4&#39;, width:75}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;c5&#39;, index:&#39;c5&#39;, width:75}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;c6&#39;, index:&#39;c6&#39;, width:75} <br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:20,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;c1&#39;,<br />&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160; caption: &#39;Positions&#39;<br />&#160; }); <br />});</p>
<p>var retval = $(&#39;#list&#39;).jqGrid (&#39;updateGridRows&#39;, [{c2:"test2", c3:"test3"}], "x2");<br />if (retval == true)<br />&#160; alert ("true returned");<br />else<br />&#160; alert ("false returned");</p>
<p>&#60;/script&#62;<br />&#160;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;table id="list"&#62;&#60;tr&#62;&#60;td/&#62;&#60;/tr&#62;&#60;/table&#62; <br />&#60;div id="pager"&#62;&#60;/div&#62; <br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</p>
<p>JSON data returned by my server looks like this:</p>
<pre>{
  "total": "1",
  "page": "1",
  "records": "5",
  "rows": [
      {"id": "x1", "cell": ["(1,1)", "(1,2)", "(1,3)", "(1,4)", "(1,5)", "(1,6)"]},
      {"id": "x2", "cell": ["(2,1)", "(2,2)", "(2,3)", "(2,4)", "(2,5)", "(2,6)"]},
      {"id": "x3", "cell": ["(3,1)", "(3,2)", "(3,3)", "(3,4)", "(3,5)", "(3,6)"]},
      {"id": "x4", "cell": ["(4,1)", "(4,2)", "(4,3)", "(4,4)", "(4,5)", "(4,6)"]},
      {"id": "x5", "cell": ["(5,1)", "(5,2)", "(5,3)", "(5,4)", "(5,5)", "(5,6)"]}
  ]
}
<br /><br />As mentioned, the data loads correctly into the grid.  But the updateGridRows call doesn&#39;t work for some reason.  Data on the grid doesn&#39;t change. <br />When I trace the code using firebug, I found out jqgrid is throwing an error ("jqGrid - No such method: updateGridRows") here:<br />
<p>$.fn.jqGrid = function( pin ) {
</p><p>  if (typeof pin == &#39;string&#39;) {
</p><p>//var fn = $.fn.jqGrid[pin];
</p><p>var fn = $.jgrid.getAccessor($.fn.jqGrid,pin);
</p><p>if (!fn) {
</p><p>    throw ("jqGrid - No such method: " + pin);
</p><p>}</p><br /><p>When I download jqgrid, I checked all boxes (including the "custom" box) as instructed in the Wiki.  What am I doing wrong?</p><p>BTW, I also tried using setRowData to modify a row also; that didn&#39;t work either.  Also, I tried puting the updateGridRows call inside</p><p>a loadComplete event handler - same result.  Please help.</p></pre>
]]></description>
        	        	<pubDate>Fri, 02 Mar 2012 08:18:37 +0200</pubDate>
        </item>
</channel>
</rss>