<?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: xml data requested not showing in jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/xml-data-requested-not-showing-in-jqgrid</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/xml-data-requested-not-showing-in-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on xml data requested not showing in jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-data-requested-not-showing-in-jqgrid#p16677</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-data-requested-not-showing-in-jqgrid#p16677</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>For a complex xml structure you maybe will need to set these names in colModel, but actually it depends on how your structure is organized. By example if you point in the xmlReader</p>
<p>to the right row structure and this structure contain only the names there is not need to do chnanges in colModel, but if your row contain another complex data - yes this is needed.</p>
<p>Also I think that in your example repeatitems should be set to false and not true in order this to work.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 13:06:20 +0300</pubDate>
        </item>
        <item>
        	<title>Energetic Pixels on xml data requested not showing in jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-data-requested-not-showing-in-jqgrid#p16573</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-data-requested-not-showing-in-jqgrid#p16573</guid>
        	        	<description><![CDATA[<p>IGNORE THIS POST. &#160;I will submit a more narrowed question in a future post. (as soon as I find more hair to pull out)</p>
</p>
<p>I have a question!</p>
<p>In my jqGrid scripting and within the column model (colModel), do I need to state/list the whole xml structure even though I am not using most of the elements or even allowing them to be viewed???&#160; In my current set up, I get the jqGrid to render and also view my column names, but absolutely no data within the grid.&#160;&#160; I am working with a static xml file that will be stored out in "never never land".&#160; Each library of my weapon groups will have many many elements within a "group" file.&#160; I only listed those elements within the colModel that I wanted to view.&#160; Do I need to list the whole xml model in the colModel??&#160; If so, that would lead me to my second question below.</p>
</p>
<p>Second question: Is there a way to script a function that would modify my pre-setup jqGrid script? This way, I could have a single master configuration jqGrid.js file that I could control through another function (mainly for visibility of columns).&#160; If not, I could have upwards of 18-23 "restated" $(&#39;#targetDiv&#39;).jqGrid(function&#160; ({&#8230;.. control sequences.&#160; It is going to get quite long as most of my xml files have a larger number of elements within the item model.&#160; I am trying to cut down on the download time for the .js files.&#160; My ultimate customer/user could be out in the middle of Afghanistan with very little (56K modem speed) internet access.</p>
</p>
<p>Here is the sample of my current data model (the smaller of the whole bunch):</p>
<p>&#60;?xml version="1.0&#8243; encoding="utf-8&#8243; standalone="yes"?&#62;<br />&#60;chemicals&#62;<br />&#160;&#160;&#160; &#60;chemical dodic="k866&#8243;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;weaponType&#62;smoke&#60;/weaponType&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;nomenclature&#62;Smoke Pot: HC, 30-Pound, ABC-M5&#60;/nomenclature&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;use&#62;To produce screening smoke for training exercises and demonstrations, but can also be used in combat.&#60;/use&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#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 />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;objWeight measure="pound"&#62;33&#60;/objWeight&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;objHeight measure="inch"&#62;9.5&#60;/objHeight&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;objDiameter measure="inch"&#62;8.5&#60;/objDiameter&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;bodyMat&#62;Sheet Metal&#60;/bodyMat&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;chemFillers&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;compound&#62;Type-C HC smoke mixture<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;qty measure="pound"&#62;30 slow-burning&#60;/qty&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/compound&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;compound&#62;HC smoke mixture<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;qty measure="pound"&#62;1 fast burning&#60;/qty&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/compound&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;chemFillerIgn&#62;Flash-vented electric squibs or scratch block and match&#60;/chemFillerIgn&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/chemFillers&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;performance&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;delayTimeMin measure="second"&#62;20&#60;/delayTimeMin&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;delayTimeMax measure="second"&#62;30&#60;/delayTimeMax&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;burnTimeMin measure="minute"&#62;12&#60;/burnTimeMin&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;burnTimeMax measure="minute"&#62;22&#60;/burnTimeMax&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/performance&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;containers&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;configuration&#62;1 smoke pot per plywood box&#60;/configuration&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;outerPackage material="plywood"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;outerLength measure="inch"&#62;&#62;12&#60;/outerLength&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;outerWidth measure="inch"&#62;12&#60;/outerWidth&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;outerHeight measure="inch"&#62;13.25&#60;/outerHeight&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;outerWeight measure="pound"&#62;47&#60;/outerWeight&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;outerVolume measure="cubic feet"&#62;1.1&#60;/outerVolume&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/outerPackage&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;innerPackage material="plywood"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;innerLength measure=""&#62;&#60;/innerLength&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;innerHeight measure=""&#62;&#60;/innerHeight&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;innerWeight measure=""&#62;&#60;/innerWeight&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;innerVolume measure="cubic feet"&#62;&#60;/innerVolume&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/innerPackage&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/containers&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;transData&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;UNOsn&#62;0016&#60;/UNOsn&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;UNOpsn&#62;Smoke Pots&#60;/UNOpsn&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;qdClassSCG&#62;1.3G&#60;/qdClassSCG&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;DOTclass&#62;C&#60;/DOTclass&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;DOTlabel&#62;Explosive C&#60;/DOTlabel&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;DODAC&#62;1365-K866&#60;/DODAC&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;NSN&#62;1365-00-598-5207&#60;/NSN&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;dwgNumber&#62;36-1-18&#60;/dwgNumber&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/transData&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;references&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;publication&#62;FM 3-50&#60;/publication&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;publication&#62;SB 3-30-153&#60;/publication&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;publication&#62;SC1340/98-IL&#60;/publication&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;publication&#62;TM CML 100&#60;/publication&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/references&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;siterefs&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;publication&#62;TM 43-0001-26-2<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;onlineLoc&#62;logsa.army.mil&#60;/onlineLoc&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/publication&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;publication&#62;DAC Conventional Ammunition Packaging Unit Load Data Index (CAPULDI)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;onlineLoc&#62;logsa.army.mil&#60;/onlineLoc&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/publication&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/siterefs&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;media&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;photo&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;pic&#62;&#60;/pic&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;pic&#62;&#60;/pic&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/photo&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;aReality&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;anim&#62;&#60;/anim&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;anim&#62;&#60;/anim&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/aReality&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/media&#62;<br />&#160;&#160;&#160; &#60;/chemical&#62;<br />&#60;/chemicals&#62;</p>
<p>Here is the controlling jqGrid script that I am working with:</p>
<p>$(&#39;#chem li&#39;).click(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#searchResults&#39;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#39;weaponLib/AME_chem.xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:["DODAC","NSN","Nomenclature"],<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:"DODAC",index:"DODC",width:50,xmlmap:"chemical&#62;transData&#62;DODAC"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:"NSN",index:"NSN", width:180,xmlmap:"chemical&#62;transData&#62;NSN"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:"nomenclature",index:"nomenclature", width:100, align:"right",xmlmap:"chemical&#62;nomenclature", sorttype:"float"}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height:250,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width: 700,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10,<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadonce: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;xmlReader: {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;root : "chemicals",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;row: "chemical",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: "[dodic]"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption: "Chemical Weapon Results"<br />&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#welcome&#39;).css(&#39;display&#39;, &#39;none&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#theGrid&#39;).css(&#39;display&#39;, &#39;block&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;});</p>
</p>
<p>Any suggestions or direction would be appreciated.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 21 Apr 2010 01:20:27 +0300</pubDate>
        </item>
</channel>
</rss>