<?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: What are needed in colModel, xmlReader, etc?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/what-are-needed-in-colmodel-xmlreader-etc</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/what-are-needed-in-colmodel-xmlreader-etc/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>PeterLewis on What are needed in colModel, xmlReader, etc?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-are-needed-in-colmodel-xmlreader-etc#p28217</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-are-needed-in-colmodel-xmlreader-etc#p28217</guid>
        	        	<description><![CDATA[<p>I found the documentation in the Data Manipulation section, and I have got my grid to work.&#160;</p>
</p>
<p>The critical item was setting repeatitems in xmlReader to false.</p>
</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Sat, 02 Feb 2013 18:27:09 +0200</pubDate>
        </item>
        <item>
        	<title>tony on What are needed in colModel, xmlReader, etc?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-are-needed-in-colmodel-xmlreader-etc#p28216</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-are-needed-in-colmodel-xmlreader-etc#p28216</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>All what you need to know is <a href="/jqgridwiki/doku.php?id=wiki:retrieving_data#xml_data" target="_blank">here</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sat, 02 Feb 2013 18:25:05 +0200</pubDate>
        </item>
        <item>
        	<title>PeterLewis on What are needed in colModel, xmlReader, etc?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-are-needed-in-colmodel-xmlreader-etc#p28215</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-are-needed-in-colmodel-xmlreader-etc#p28215</guid>
        	        	<description><![CDATA[<p>The data returned by my web method is as follows:</p>
<p><span style="color: #800000;"></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit7209' value='Select Code' data-codeid='sfcode7209' /></p>
<div class='sfcode' id='sfcode7209'>
<p><span style=&#34;&#34;color:&#34;>&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#60;ArrayOfGroup xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance&#34; xmlns:xsd=&#34;</span></p>
<p><a href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema</a><span style=&#34;&#34;color:&#34;>&#34; xmlns=&#34;<a href="http://thingss.org/&#34;&#038;gt" rel="nofollow" target="_blank">http://thingss.org/&#34;&#038;gt</a>;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160; &#60;Group&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160;&#160;&#160; &#60;RoleId&#62;b65440c2-eb0b-4467-bb15-40e6f0836177&#60;/RoleId&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160;&#160;&#160; &#60;RoleName&#62;Admin&#60;/RoleName&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160;&#160;&#160; &#60;Description&#62;Administrators&#60;/Description&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160; &#60;/Group&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160; &#60;Group&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160;&#160;&#160; &#60;RoleId&#62;b65440c2-eb0b-4467-bb15-40e6f0836177&#60;/RoleId&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160;&#160;&#160; &#60;RoleName&#62;Staff&#60;/RoleName&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160;&#160;&#160; &#60;Description&#62;All Employees&#60;/Description&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#160; &#60;/Group&#62;</span></p>
<p><span style=&#34;&#34;color:&#34;>&#60;/ArrayOfGroup&#62;</span></p>
</div>
<p>I have spent many many hours but still could not get the data to show in the grid.&#160; I can confirm that the data is received based on the&#160; function I have in the loadComplete option.&#160; Can someone help me with what I need to put to get it to work.&#160; The code below is all messed up by the editor and I can&#39;t show it clearly.&#160; How must I code the colModel, xmlReader and any other options?</p>
<p><span style="font-size: x-small; font-family: Consolas;"><span style="font-size: x-small; font-family: Consolas;"></span></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit8945' value='Select Code' data-codeid='sfcode8945' /></p>
<div class='sfcode' id='sfcode8945'><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;></p>
<p>grid = $(</p>
<p>&#160; grid.jqGrid({url:</p>
<p>&#160; mtype:</p>
<p>&#160; datatype:</p>
<p><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;></span></span></p>
<p>&#160; colNames: [</p>
<p>&#160; colModel: [{ name:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name:</p>
<p>&#160; xmlReader: { root:</p>
<p>&#160; rowNum: 10,</p>
<p>&#160; autowidth:</p>
</p>
<p></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;RoleName&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;Description&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>], </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;Name&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, index: </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;Group&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, width: 50, xmlmap: </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#34;RoleName&#34;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;> }, </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;Description&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, index: </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;Description&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, width: 100, xmlmap: </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#34;Description&#34;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;> }], </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#34;ArrayOfGroup&#34;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, row:</span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#34;Group&#34;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;> },&#160; /* ???? */</span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>true</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#160; loadComplete: </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>function</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;> () { alert(</span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#34;Loaded!&#34;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>); }</span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;#roles&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>); </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#39;WebService.asmx/GetAllGroups&#39;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#34;POST&#34;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>&#34;xml&#34;</span></span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>, </span></span><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;><span style=&#34;&#34;font-size:&#34;>/*data: [ {Name: &#34;abc&#34;, Description: &#34;def&#34;}, {Name: &#34;qqq&#34;, Description: &#34;drrref&#34;} ],*/</span></span></span></div>
</p>
<p>Thanks.</p>
<p></p>
<p><span style="font-size: x-small; font-family: Consolas;">&#160;</span></p>
]]></description>
        	        	<pubDate>Sat, 02 Feb 2013 18:08:57 +0200</pubDate>
        </item>
</channel>
</rss>