<?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: Problem with local data</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-local-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/bugs/problem-with-local-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Problem with local data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-local-data#p6866</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-local-data#p6866</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Also these options are for the editing. In order to show them in the grid use formatter:&#39;checkbox&#39;</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 25 May 2009 01:36:31 +0300</pubDate>
        </item>
        <item>
        	<title>dgoldman on Problem with local data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-local-data#p6861</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-local-data#p6861</guid>
        	        	<description><![CDATA[<p><div>I had posted this to the help section and received no responses, so I&#39;m trying here. I was thinking I was doing something wrong, but now feel this could actually be a bug.</div>
<div></div>
<div>I have no problem with checkboxes and select lists on json fed pages, but I can&#39;t get them to show up when I use datatype:local.</div>
<div></div>
<div>If I define a column to be a checkbox and then used the addRowData method to create a row - what shows up in the checkbox column is a &#8220;1&#8243; - not a checked box. When I look the rendered HTML its &#8220;&#60;td title=&#8221;0&#8243;&#62;0&#60;/td&#62;&#8221;. Here is a snippet of the problematic code.</div>
<div></div>
<div>
<div>
<div>&#60;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221;</div>
<div>&#8220;<a href="http://www.w3.org/TR/html4/strict.dtd&#8221;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/TR/html4/str" rel="nofollow">http://www.w3.org/TR/html4/str</a>.....o;&#038;gt</a>;</div>
<div>&#60;html&#62;</div>
<div>&#60;head&#62;</div>
<div>&#60;title&#62;Test&#60;/title&#62;</div>
<div>&#60;link rel=&#8221;StyleSheet&#8221; type=&#8221;text/css&#8221; href=&#8221;/css/main.css&#8221; media=&#8221;all&#8221;/&#62;</div>
<div>&#60;link rel=&#8221;StyleSheet&#8221; type=&#8221;text/css&#8221; href=&#8221;/js/jqGrid-3-1/themes/steel/grid.css&#8221; media=&#8221;all&#8221;/&#62;</div>
<div>&#60;script LANGUAGE=&#8221;javascript&#8221; src=&#8221;/js/jquery-1.3.2.js&#8221;&#62;&#60;/script&#62;</div>
<div>&#60;script LANGUAGE=&#8221;javascript&#8221; src=&#8221;/js/jqGrid-3-1/jquery.jqGrid.js&#8221;&#62;&#60;/script&#62;</div>
<div>&#60;script LANGUAGE=&#8221;JavaScript&#8221;&#62;</div>
<div></div>
<div>$(document).ready(function () {</div>
<div>&#160;</div>
<div>jQuery(&#8221;#sensorgrid&#8221;).jqGrid({</div>
<div>&#160;&#160; datatype: &#8220;local&#8221;,</div>
<div></div>
<div>&#160;&#160; colNames:["ID","Graph?","Table?","Description","Axis","Style","Type","Interval"],</div>
<div>&#160;&#160; colModel:[</div>
<div>{name:&#39;id&#39;,index:&#39;id&#39;, width:30},</div>
<div>{name:&#39;graph&#39;,index:&#39;graph&#39;, width:30,editable:true, edittype:"checkbox",editoptions: {value:"1:0"}},</div>
<div>{name:&#39;table&#39;,index:&#39;table&#39;, width:30,editable:true, edittype:"checkbox",editoptions: {value:"1:0"}},</div>
<div>{name:&#39;desc&#39;,index:&#39;desc&#39;, width:225},</div>
<div>{name:&#39;a&#39;,index:&#39;a&#39;, width:100,editable:true,edittype:"select",formatter:&#39;select&#39;,editoptions:{value:"0:Hide;1:Left;2:Right"}}, &#160;</div>
<div>{name:&#39;s&#39;,index:&#39;s&#39;, width:100,editable:true,edittype:"select",formatter:&#39;select&#39;,editoptions:{value:"0:Raw;1:Sum;2:Delta;3:Minimum;4:Maximum;5:Average;6:Running Ave;7:Mean"}}, &#160;</div>
<div>{name:&#39;t&#39;,index:&#39;t&#39;, width:100,editable:true,edittype:"select",formatter:&#39;select&#39;,editoptions:{value:"1:Points;2:Lines;3:Lines+Points;4:Impulse;5:Boxes;6:Impulses"}}, &#160;</div>
<div>{name:&#39;i&#39;,index:&#39;i&#39;, width:50,editable:true,edittype:"select",formatter:&#39;select&#39;,editoptions:{value:"0:None;1:Hour;2:Day;3:Week;4:Month;5:Year"}}</div>
<div>&#160;&#160; ],</div>
<div></div>
<div>&#160;&#160; rowNum:10,</div>
<div>&#160;&#160; imgpath: &#8220;js/jqGrid-3-1/themes/steel/images&#8221;,</div>
<div>&#160;&#160; sortname: &#39;id&#39;,</div>
<div>&#160;&#160; height: 200,</div>
<div>&#160;&#160; viewrecords: true,</div>
<div>&#160;&#160; sortorder: &#8220;asc&#8221;,</div>
<div>&#160;&#160; caption:&#8221;Sensors to Plot&#8221;</div>
<div>}); &#160;</div>
<div>row = {</div>
<div>id:&#8221;1&#8243;,</div>
<div>graph:&#8221;0&#8243;,</div>
<div>table:&#8221;0&#8243;,</div>
<div>desc:&#8221;",</div>
<div>a:&#8221;1&#8243;,</div>
<div>s:&#8221;0&#8243;,</div>
<div>t:&#8221;2&#8243;,</div>
<div>i:&#8221;0&#8243;</div>
<div>&#160;};</div>
<div></div>
<div>jQuery(&#8221;#sensorgrid&#8221;).addRowData(1, row);</div>
<div></div>
<div>});</div>
<div></div>
<div>&#60;/script&#62; &#160;</div>
<div></div>
<div>&#60;/head&#62;</div>
<div>&#60;body&#62;</div>
<div>&#60;table id=&#8221;sensorgrid&#8221; class=&#8221;scroll&#8221; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243;&#62;&#60;/table&#62;</div>
<div>&#60;/body&#62;</div>
<div>&#60;/html&#62;</div>
<div></div>
<div>Any help??</div>
<div>&#8211; David</div>
</div>
</div>
]]></description>
        	        	<pubDate>Mon, 25 May 2009 00:45:31 +0300</pubDate>
        </item>
</channel>
</rss>