<?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: reloadGrid fail with javascript array data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/reloadgrid-fail-with-javascript-array-data</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/reloadgrid-fail-with-javascript-array-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Cayenne on reloadGrid fail with javascript array data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadgrid-fail-with-javascript-array-data#p29453</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadgrid-fail-with-javascript-array-data#p29453</guid>
        	        	<description><![CDATA[<p>Greetings friends. &#160;I&#39;ve looked at numerous posts but not found a suggestion to my seemingly simple problem. &#160;I have an array of data representing sailboat racing information. &#160;It&#39;s displayed in the table described below. &#160;As the race progresses, we update info, and would like that to be displayed in the table.</p>
<p>To test the function, I set up a button as follows</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit563' value='Select Code' data-codeid='sfcode563' /></p><div class='sfcode' id='sfcode563'>$(&#34;#rld&#34;).click(function(){   alert(&#39;clicked&#39;);   $(&#39;#boatlist&#39;).trigger(&#34;reloadGrid&#34;); });</div></pre>
<p>And, while it triggers the alert, there is no reflection of changed data in the table below.</p>
<p>Any hints?  This is the most current version of jqgrid.</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit7545' value='Select Code' data-codeid='sfcode7545' /></p><div class='sfcode' id='sfcode7545'>
<pre>$(&#34;#boatlist&#34;).jqGrid({
datatype: &#34;local&#34;,
width:800,
height:600,
rowNum: 1000,
loadonce:false,
data:boats,
colNames:[&#39;Name&#39;,&#39;Sail&#39;,&#39;Div&#39;,&#39;Ch&#39;,&#39;St&#39;,&#39;DXX&#39;,&#39;Fin&#39;,&#39;Var&#39;,&#39;Ct&#39;,&#39;Elapsed&#39;,&#39;Corr&#39;, &#39;Notes&#39;,&#39;Status&#39;],
    colModel:[
        {name:&#39;name&#39;,index:&#39;name&#39;, width:88},
		{name:&#39;sail&#39;,index:&#39;sail&#39;, width:44,sorttype:function(cell){
		  if(typeof cell === &#39;number&#39;){return cell};
		  return parseInt(cell.match(/\d+/),10);}
		},
		{name:&#39;div&#39;,index:&#39;div&#39;, width:33,sorttype:sortDivSta },	
		{name:&#39;dxxflags&#39;,width:15,align:&#39;center&#39;,formatter:function(cell){
		  return (cell&#38;1)?&#39;C&#39;:&#39;-&#39;;}
		},
		{name:&#39;dxxflags&#39;,width:15,align:&#39;center&#39;,formatter:function(cell){
		  return (cell&#38;4)?&#39;S&#39;:&#39;-&#39;;}
		},{name:&#39;maxdxx&#39;,index:&#39;maxdxx&#39;, width:33,formatter:flags2dxx,sorttype:bydxx},
        {name:&#39;forfin&#39;,index:&#39;forfin&#39;, width:55,sorttype:sortNullHi},
		{name:&#39;vfin&#39;,index:&#39;vfin&#39;, width:55,formatter:sec2hms,sorttype:sortNullHi},
		{name:&#39;ctfin&#39;,index:&#39;ctfin&#39;, width:25,sorttype:sortNullHi},
		{name:&#39;etime&#39;,index:&#39;etime&#39;, width:55,formatter:sec2hms,sorttype:sortNullHi},
		{name:&#39;corr&#39;,index:&#39;corr&#39;, width:55,formatter:sec2hms,sorttype:sortNullHi},
        {name:&#39;note&#39;,index:&#39;note&#39;, width:120},
		{name:&#39;status&#39;,width:27,align:&#39;center&#39;,editoptions:{value:&#34;a&#34;},edittype:&#34;select&#34;,formatter:&#34;select&#34;},		        
    			
    ],
 });
 </pre>
</div>
]]></description>
        	        	<pubDate>Wed, 11 Sep 2013 04:12:22 +0300</pubDate>
        </item>
</channel>
</rss>