<?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: no data in grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/no-data-in-grid</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/no-data-in-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Energetic Pixels on no data in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/no-data-in-grid#p16729</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/no-data-in-grid#p16729</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>&#160;&#160; I finally got the grid to render actual real data this weekend.&#160; After playing with &#39;switch&#39; settings and alot of trial and error.&#160; I also restructured the xml file to be more standard across my application.&#160; All of the id&#39;s are removed with exception of the item id (in the case above would be "chemId").&#160; I reread the API documentation and found that I can not make use of any xml element attributes except for something like an ID which will never be displayed or rendered.&#160; This restructuring made my xml files alot bigger (both in lines of code and size of file); i.e., my small arms xml library became over 16,100 lines long and about .5mb big.&#160; The file size will grow as data to the elements gets added.&#160; Maybe I have enough power now to convence my client to go JSON vice xml.</p>
</p>
<p>&#160;&#160; Thank you for the help.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 22:24:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on no data in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/no-data-in-grid#p16687</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/no-data-in-grid#p16687</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In xmlReader set repeatitems to false. (the default is true)</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 13:58:42 +0300</pubDate>
        </item>
        <item>
        	<title>Energetic Pixels on no data in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/no-data-in-grid#p16604</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/no-data-in-grid#p16604</guid>
        	        	<description><![CDATA[<p>Ok, I have tried this multiple ways and I still can not render any data into the grid. &#160;I know that jqgrid is finding my xml file because firebug says so and also my column names are being rendered. &#160;I have tried each version in both FF3 and IE7/8 with same result. &#160;Can someone tell me what I am doing wrong??</p>
<p>script for jqgrid:</p>
<p>$(&#39;#searchResults&#39;).jqGrid({<br /> url: &#39;weaponLib/chemTest1.xml&#39;,<br /> datatype: &#39;xml&#39;,<br /> colNames:["DODIC","NSN","Nomenclature"],<br /> colModel:[<br /> {name:"dodic",index:"dodic",width:15,xmlmap:"chemicals&#62;chemical&#62;dodic"},<br /> {name:"NSN",index:"NSN", width:180,xmlmap:"chemicals&#62;chemical&#62;transData&#62;NSN"},<br /> {name:"nomenclature",index:"nomenclature", width:100, align:"right",xmlmap:"chemicals&#62;chemical&#62;nomenclature", sorttype:"float"}<br /> ],<br /> autowidth: true,<br /> rowNum:10,<br /> rowList:[10,20,30],<br /> viewrecords: true,<br /> loadonce: true,<br /> xmlReader: {<br /> root : "chemicals",<br /> row: "chemical",<br /> },<br /> caption: "Chemical Weapon Results",<br /> pager: &#39;#gridNavBar&#39;<br /> });</p>
</p>
<p>I have tried it with a xmlReader id and without an id. &#160;I have tried stating the whole xml map, but jqgrid tells me that the number of colNames does not match the number of items in the colModel. &#160;I reworked my xml structure so that the id was associated with a element that I would never display. &#160;I also removed all of the element attributes and made them their own elements (so that I can later change between metric and english measurements).</p>
</p>
<p>So what gives????</p>
</p>
<p>Here is my xml model:</p>
<p>&#60;chemicals&#62;<br /> &#60;chemical chemId="1"&#62;<br /> &#60;dodic&#62;k866&#60;/dodic&#62;<br /> &#60;weaponType&#62;smoke&#60;/weaponType&#62;<br /> &#60;nomenclature&#62;Smoke Pot: HC, 30-Pound, ABC-M5&#60;/nomenclature&#62;</p>
<p> &#60;use&#62;To produce screening smoke for training exercises and demonstrations, but can also be used in combat.&#60;/use&#62;<br /> &#60;description&#62;The ABC-M5 smoke pot is a cylindrical sheetmetal container, filled with about 30 pounds of slowburning, type-C, HC smoke mixture and 1 pound of fast-burning, HC smoke mixture. A carrying handle is mounted on the outer cover.&#60;/description&#62;<br /> &#60;objLength&#62;<br /> &#60;value&#62;&#60;/value&#62;<br />&#160;&#60;unit&#62;&#60;/unit&#62;<br /> &#60;/objLength&#62;<br /> &#60;objWidth&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/objWidth&#62;<br /> &#60;objHeight&#62;<br /> &#60;value&#62;9.5&#60;/value&#62;<br /> &#60;unit&#62;inch&#60;/unit&#62;<br /> &#60;/objHeight&#62;<br /> &#60;objDiameter&#62;<br /> &#60;value&#62;8.5&#60;/value&#62;<br /> &#60;unit&#62;inch&#60;/unit&#62;<br /> &#60;/objDiameter&#62;<br /> &#60;objWeight&#62;<br /> &#60;value&#62;33&#60;/value&#62;<br /> &#60;unit&#62;pound&#60;/unit&#62;<br /> &#60;/objWeight&#62;<br /> &#60;bodyMat&#62;Sheet Metal&#60;/bodyMat&#62;<br /> &#60;chemFillers&#62;<br /> &#60;compound&#62;<br /> &#60;substance&#62;Type-C HC smoke mixture&#60;/substance&#62;<br /> &#60;value&#62;30&#60;/value&#62;<br /> &#60;subvalue&#62;slow-burning&#60;/subvalue&#62;<br /> &#60;unit&#62;pound&#60;/unit&#62;<br /> &#60;/compound&#62;<br /> &#60;compound&#62;HC smoke mixture<br /> &#60;substance&#62;HC smoke mixture&#60;/substance&#62;<br /> &#60;value&#62;1&#60;/value&#62;<br /> &#60;subvalue&#62;fast burning&#60;/subvalue&#62;<br /> &#60;unit&#62;pound&#60;/unit&#62;<br /> &#60;/compound&#62;<br /> &#60;chemFillerIgn&#62;Flash-vented electric squibs or scratch block and match&#60;/chemFillerIgn&#62;<br /> &#60;/chemFillers&#62;<br /> &#60;performance&#62;<br /> &#60;delayTimeMin&#62;<br /> &#60;value&#62;20&#60;/value&#62;<br /> &#60;unit&#62;second&#60;/unit&#62;<br /> &#60;/delayTimeMin&#62;<br /> &#60;delayTimeMax&#62;<br /> &#60;value&#62;30&#60;/value&#62;<br /> &#60;unit&#62;second&#60;/unit&#62;<br /> &#60;/delayTimeMax&#62;<br /> &#60;burnTimeMin&#62;<br /> &#60;value&#62;12&#60;/value&#62;<br /> &#60;unit&#62;minute&#60;/unit&#62;<br /> &#60;/burnTimeMin&#62;<br /> &#60;burnTimeMax&#62;<br /> &#60;value&#62;22&#60;/value&#62;<br /> &#60;unit&#62;minute&#60;/unit&#62;<br /> &#60;/burnTimeMax&#62;<br /> &#60;/performance&#62;<br /> &#60;containers&#62;<br /> &#60;configuration&#62;1 smoke pot per plywood box&#60;/configuration&#62;<br /> &#60;outerPackage&#62;<br /> &#60;material&#62;plywood&#60;/material&#62;<br /> &#60;outerLength&#62;<br /> &#60;value&#62;12&#60;/value&#62;<br /> &#60;unit&#62;inch&#60;/unit&#62;<br /> &#60;/outerLength&#62;<br /> &#60;outerWidth&#62;<br /> &#60;value&#62;12&#60;/value&#62;<br /> &#60;unit&#62;inch&#60;/unit&#62;<br /> &#60;/outerWidth&#62;<br /> &#60;outerHeight&#62;<br /> &#60;value&#62;13.5&#60;/value&#62;<br /> &#60;unit&#62;inch&#60;/unit&#62;<br /> &#60;/outerHeight&#62;<br /> &#60;outerDiameter&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/outerDiameter&#62;<br /> &#60;outerWeight&#62;<br /> &#60;value&#62;47&#60;/value&#62;<br /> &#60;unit&#62;pound&#60;/unit&#62;<br /> &#60;/outerWeight&#62;<br /> &#60;outerVolume&#62;<br /> &#60;value&#62;1.1&#60;/value&#62;<br /> &#60;unit&#62;cubic feet&#60;/unit&#62;<br /> &#60;/outerVolume&#62;<br /> &#60;/outerPackage&#62;<br /> &#60;innerPackage&#62;<br /> &#60;material&#62;&#60;/material&#62;<br /> &#60;innerLength&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/innerLength&#62;<br /> &#60;innerWidth&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/innerWidth&#62;<br /> &#60;innerHeight&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/innerHeight&#62;<br /> &#60;innerDiameter&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/innerDiameter&#62;<br /> &#60;innerWeight&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/innerWeight&#62;<br /> &#60;innerVolume&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/innerVolume&#62;<br /> &#60;/innerPackage&#62;<br /> &#60;/containers&#62;<br /> &#60;transData&#62;<br /> &#60;UNOsn&#62;0016&#60;/UNOsn&#62;<br /> &#60;UNOpsn&#62;Smoke Pots&#60;/UNOpsn&#62;<br /> &#60;qdClassSCG&#62;1.3G&#60;/qdClassSCG&#62;<br /> &#60;DOTclass&#62;C&#60;/DOTclass&#62;<br /> &#60;DOTlabel&#62;Explosive C&#60;/DOTlabel&#62;<br /> &#60;DODAC&#62;1365-K866&#60;/DODAC&#62;<br /> &#60;NSN&#62;1365-00-598-5207&#60;/NSN&#62;<br /> &#60;dwgNumber&#62;36-1-18&#60;/dwgNumber&#62;<br /> &#60;/transData&#62;<br /> &#60;references&#62;<br /> &#60;publication&#62;FM 3-50&#60;/publication&#62;<br /> &#60;publication&#62;SB 3-30-153&#60;/publication&#62;<br /> &#60;publication&#62;SC1340/98-IL&#60;/publication&#62;<br /> &#60;publication&#62;TM CML 100&#60;/publication&#62;<br /> &#60;/references&#62;<br /> &#60;siterefs&#62;<br /> &#60;publication&#62;TM 43-0001-26-2<br /> &#60;onlineLoc&#62;logsa.army.mil&#60;/onlineLoc&#62;<br /> &#60;/publication&#62;<br /> &#60;publication&#62;DAC Conventional Ammunition Packaging Unit Load Data Index (CAPULDI)<br /> &#60;onlineLoc&#62;logsa.army.mil&#60;/onlineLoc&#62;<br /> &#60;/publication&#62;<br /> &#60;/siterefs&#62;<br /> &#60;media&#62;<br /> &#60;photo&#62;<br /> &#60;pic&#62;&#60;/pic&#62;<br /> &#60;pic&#62;&#60;/pic&#62;<br /> &#60;/photo&#62;<br /> &#60;aReality&#62;<br /> &#60;anim&#62;&#60;/anim&#62;<br /> &#60;anim&#62;&#60;/anim&#62;<br /> &#60;/aReality&#62;<br /> &#60;/media&#62;<br /> &#60;/chemical&#62;<br />&#60;/chemicals&#62;</p>
</p>
<p>respectfully,</p>
<p>Tony</p>
<p><span class="sourceRowText"> &#160;</span></p>
]]></description>
        	        	<pubDate>Thu, 22 Apr 2010 19:06:51 +0300</pubDate>
        </item>
</channel>
</rss>