<?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: Grid not generated</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-generated</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/grid-not-generated/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>matthieu590 on Grid not generated</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-generated#p23805</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-not-generated#p23805</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I try to figure out why this code don&#39;t load a grid. I inspected the code with firebug and all javascript and css files are loaded. There aren&#39;t any bugs in the Firebug console.</p>
<p>The result is a blank table: &#60;table id="list1&#8243;&#62;&#60;/table&#62;</p>
<p>This code comes from an example on jqGrid demo website.</p>
<p>Thanks !!</p>
</p>
<blockquote>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br />"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;<br />&#60;html&#62;<br />&#60;head&#62;</p>
<p>&#60;link rel="stylesheet" href="test_ui/ui/css/overcast/jquery-ui-1.8.14.custom.css" /&#62;<br />&#60;link rel="stylesheet" href="css/ui.jqgrid.css" /&#62;</p>
<p>&#60;script type="text/javascript" src="test_ui/js/jquery-1.5.2.min.js"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="test_ui/js/i18n/grid.locale-fr.js"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="test_ui/js/jquery.jqGrid.min.js"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;</p>
<p>jQuery("#list").jqGrid({ datatype: "local", height: 250, <br />colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;], <br />colModel:[ {name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:"int"}, <br />{name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, sorttype:"date"}, <br />{name:&#39;name&#39;,index:&#39;name&#39;, width:100}, <br />{name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",sorttype:"float"}, <br />{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",sorttype:"float"},<br />&#160;{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",sorttype:"float"}, <br />&#160;{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false} ],<br />&#160;multiselect: true, caption: "Manipulating Array Data" }); <br />&#160;<br />&#160;var mydata = [ {id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, {id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, {id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"8",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"9",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"} ]; <br />&#160;for(var i=0;i&#60;=mydata.length;i++) {<br />&#160;jQuery("#list").jqGrid(&#39;addRowData&#39;,i+1,mydata[i]);<br />&#160;}<br />&#60;/script&#62;</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;table id="list"&#62;&#60;/table&#62;</p>
<p>&#60;/body&#62;<br />&#60;/html&#62;</p>
</blockquote>
<blockquote>
</blockquote>
]]></description>
        	        	<pubDate>Wed, 29 Jun 2011 14:59:32 +0300</pubDate>
        </item>
</channel>
</rss>