<?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: Reading an XML file</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/reading-an-xml-file</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/reading-an-xml-file/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kanteldata on Reading an XML file</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reading-an-xml-file#p17159</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reading-an-xml-file#p17159</guid>
        	        	<description><![CDATA[<p>Thanks for the reply.</p>
</p>
<p>It turned out to be a missing comma after the XMLReader parameter.&#160; I am using 3.4.3 because I could not get the new version to work.</p>
<p>I have another question.&#160; For the Email column, is it possible to make the value in each cell of the column a link that would open the user&#39;s email program and start an email to the person in that row of the grid.&#160;If this is possible, could I replace the text with&#160;some email icon so the user would only see the icon (not the text).</p>
</p>
<p>Thanks in advance</p>
]]></description>
        	        	<pubDate>Thu, 13 May 2010 19:56:29 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Reading an XML file</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reading-an-xml-file#p17121</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reading-an-xml-file#p17121</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Which version of jqGrid is used? I see it is the old one 3.4 maybe.</p>
<p>Also this should work.</p>
<p>How do you call the page - I mean</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7397' value='Select Code' data-codeid='sfcode7397' /></p>
<div class='sfcode' id='sfcode7397'>
<p><a href="http://localhost..../mygrid.html" rel="nofollow" target="_blank"></a><a href="http://localhost" rel="nofollow" target="_blank">http://localhost</a>..../mygrid.html</p>
</div>
<p>or you directly with double click</p>
<p>IMHO the only thing here is the id setting.</p>
<p>try to set the id in colModel like this</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2059' value='Select Code' data-codeid='sfcode2059' /></p>
<div class='sfcode' id='sfcode2059'>
<p>colModel :[<br />&#160;&#160;&#160;{name:&#39;email&#39;, index:&#39;email&#39;, width:55, xmlmap:&#39;email&#39;, <strong>key:true</strong>},<br />&#160;&#160;&#160;{name:&#39;name&#39;, index:&#39;name&#39;, width:90, xmlmap: &#39;name&#39;},<br />&#160;&#160;&#160;{name:&#39;position&#39;, index:&#39;position&#39;, width:80, xmlmap: &#39;position&#39;},<br />&#160;&#160;&#160;{name:&#39;phone&#39;, index:&#39;phone&#39;, width:80, xmlmap: &#39;phone&#39;}<br />&#160;&#160;&#160; ],</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 12 May 2010 21:03:47 +0300</pubDate>
        </item>
        <item>
        	<title>kanteldata on Reading an XML file</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reading-an-xml-file#p17114</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reading-an-xml-file#p17114</guid>
        	        	<description><![CDATA[<p>I am using the following HTML file to display the data from an XML file that is located in the root of my site.&#160; Here is the code:</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;<br />&#60;html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"&#62;<br />&#60;head&#62; &#60;title&#62;jqGrid Demo&#60;/title&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="themes/steel/grid.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="themes/jqModal.css" /&#62;</p>
<p>&#60;script src="jquery.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jquery.jqGrid.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="js/jqModal.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="js/jqDnR.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript"&#62;<br />jQuery(document).ready(function(){<br />&#160;jQuery("#list").jqGrid({<br />&#160;&#160;<a href="/blog/&#39;Executives.xml&#39;" target="_blank">url:&#39;Executives.xml&#39;</a>,<br />&#160;&#160;datatype: &#39;xml&#39;,<br />&#160;&#160;mtype: &#39;GET&#39;,<br />&#160;&#160;xmlReader : {<br />&#160;&#160;&#160;root: "executives",<br />&#160;&#160;&#160;row: "executive",<br />&#160;&#160;&#160;//page: "rows&#62;page",<br />&#160;&#160;&#160;//total: "rows&#62;total",<br />&#160;&#160;&#160;//records : "rows&#62;records",<br />&#160;&#160;&#160;repeatitems: false,<br />&#160;&#160;&#160;id: "[id]"<br />&#160;&#160;&#160;//userdata: "userdata",<br />&#160;&#160;&#160;//subgrid: { root:"rows", row: "row", repeatitems: true, cell:"cell" }<br />&#160;&#160;&#160; }<br />&#160;&#160;colModel :[<br />&#160;&#160;&#160;{name:&#39;email&#39;, index:&#39;email&#39;, width:55, xmlmap:&#39;email&#39;},<br />&#160;&#160;&#160;{name:&#39;name&#39;, index:&#39;name&#39;, width:90, xmlmap: &#39;name&#39;},<br />&#160;&#160;&#160;{name:&#39;position&#39;, index:&#39;position&#39;, width:80, xmlmap: &#39;position&#39;},<br />&#160;&#160;&#160;{name:&#39;phone&#39;, index:&#39;phone&#39;, width:80, xmlmap: &#39;phone&#39;}<br />&#160;&#160;&#160; ],<br />&#160;&#160;//colNames:[&#39;Email&#39;,&#39;Name&#39;, &#39;Position&#39;,&#39;Phone&#39;],<br />&#160;&#160;//colModel :[<br />//&#160;&#160;&#160;{name:&#39;invid&#39;, index:&#39;invid&#39;, width:55},<br />//&#160;&#160;&#160;{name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90},<br />//&#160;&#160;&#160;{name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;},<br />//&#160;&#160;&#160;{name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;},<br />//&#160;&#160;&#160;{name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;},<br />//&#160;&#160;&#160;{name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false}<br />//&#160;&#160;&#160; ],<br />&#160;&#160;pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;rowNum:10,<br />&#160;&#160;rowList:[10,20,30],<br />&#160;&#160;sortname: &#39;id&#39;,<br />&#160;&#160;sortorder: "desc",<br />&#160;&#160;viewrecords: true,<br />&#160;&#160;imgpath: &#39;themes/steel/images&#39;,<br />&#160;&#160;caption: &#39;Sun News Executives&#39; });<br />&#160;&#160; });<br />&#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#160;&#60;table id="list" class="scroll"&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id="pager" class="scroll" style="text-align:center;"&#62;&#60;/div&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</p>
<p>The XML file looks like this:</p>
</p>
<p>&#60;?xml version="1.0" encoding="utf-8"?&#62;<br />&#60;executives&#62;<br />&#160;&#60;executive&#62;<br />&#160;&#160;&#60;email&#62;mailto:derekdr@sunline.net&#60;/email&#62;<br />&#160;&#160;&#60;name&#62;Derek Dunn-Rankin&#60;/name&#62;<br />&#160;&#160;&#60;position&#62;Chief Executive Officer&#60;/position&#62;<br />&#160;&#160;&#60;phone&#62;(941) 206-1001&#60;/phone&#62;<br />&#160;&#60;/executive&#62;<br />&#160;&#60;executive&#62;<br />&#160;&#160;&#60;email&#62;mailto:derekdr@sunline.net&#60;/email&#62;<br />&#160;&#160;&#60;name&#62;Derek Dunn-Rankin&#60;/name&#62;<br />&#160;&#160;&#60;position&#62;Chief Executive Officer&#60;/position&#62;<br />&#160;&#160;&#60;phone&#62;(941) 206-1001&#60;/phone&#62;<br />&#160;&#60;/executive&#62;<br />&#160;&#60;executive&#62;<br />&#160;&#160;&#60;email&#62;mailto:daviddr@sun-herald.com&#60;/email&#62;<br />&#160;&#160;&#60;name&#62;David Dunn-Rankin&#60;/name&#62;<br />&#160;&#160;&#60;position&#62;President, Publisher&#60;/position&#62;<br />&#160;&#160;&#60;phone&#62;(941) 206-1003&#60;/phone&#62;<br />&#160;&#60;/executive&#62;<br />&#160;&#60;executive&#62;<br />&#160;&#160;&#60;email&#62;mailto:porter@sun-herald.com&#60;/email&#62;<br />&#160;&#160;&#60;name&#62;Chris Porter&#60;/name&#62;<br />&#160;&#160;&#60;position&#62;Charlotte Sun Editor&#60;/position&#62;<br />&#160;&#160;&#60;phone&#62;(941) 206-1134&#60;/phone&#62;<br />&#160;&#60;/executive&#62;<br />&#160;&#60;executive&#62;<br />&#160;&#160;&#60;email&#62;mailto:lcapasso@sun-herald.com&#60;/email&#62;<br />&#160;&#160;&#60;name&#62;Lang Capasso&#60;/name&#62;<br />&#160;&#160;&#60;position&#62;General Manager Venice Gondolier Sun&#60;/position&#62;<br />&#160;&#160;&#60;phone&#62;(941) 206-1001&#60;/phone&#62;<br />&#160;&#60;/executive&#62;<br />&#160;&#60;executive&#62;<br />&#160;&#160;&#60;email&#62;mailto:bmudge@venicegondolier.com&#60;/email&#62;<br />&#160;&#160;&#60;name&#62;Bob Mudge&#60;/name&#62;<br />&#160;&#160;&#60;position&#62;Venice Gondolier Sun Editor&#60;/position&#62;<br />&#160;&#160;&#60;phone&#62;(941) 207-1101&#60;/phone&#62;<br />&#160;&#60;/executive&#62;<br />&#160;<br />&#60;/executives&#62;</p>
</p>
<p>I am new to the grid and it looks terrific but I can&#39;t get beyond this point.&#160; Thanks for any help.</p>
]]></description>
        	        	<pubDate>Wed, 12 May 2010 18:45:42 +0300</pubDate>
        </item>
</channel>
</rss>