<?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: Selection attribute in custom xml for page/total/records </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/selection-attribute-in-custom-xml-for-pagetotalrecords</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/selection-attribute-in-custom-xml-for-pagetotalrecords/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Selection attribute in custom xml for page/total/records </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/selection-attribute-in-custom-xml-for-pagetotalrecords#p7045</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/selection-attribute-in-custom-xml-for-pagetotalrecords#p7045</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Except the id, attributes are not supported as data.</p>
<p>Reagrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 04 Jun 2009 04:24:18 +0300</pubDate>
        </item>
        <item>
        	<title>Corrado on Selection attribute in custom xml for page/total/records </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/selection-attribute-in-custom-xml-for-pagetotalrecords#p7003</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/selection-attribute-in-custom-xml-for-pagetotalrecords#p7003</guid>
        	        	<description><![CDATA[<p>jquery 1.3.1<br />jqgrid 3.4.3</p>
<p>Hi, I have the following xml:</p>
<p>&#60;?xml version="1.0" encoding="iso-8859-1"?&#62;<br />&#60;rowset&#62;<br />&#60;header currentPage="1" pageCount="3" recordCount="30" pageSize="10"/&#62;<br />&#160; &#60;elenco&#62;... [some nodes]&#60;/elenco&#62;<br />&#160; &#60;elenco&#62;...&#60;/elenco&#62;<br />&#160; ...<br />&#60;/rowset&#62;</p>
<p>and I want to display into the Pager the informations about actual page, total pages and total records.</p>
<p>By the documentation I read I can use the E[foo] notation (<a href="http://www.w3.org/TR/CSS2/selector.html" rel="nofollow" target="_blank">http://www.w3.org/TR/CSS2/selector.html</a>) to obtain node&#39;s attribute so my xmlReader is:</p>
<p>xmlReader: {<br />&#160;&#160;&#160; root: &#39;rowset&#39;,<br />&#160;&#160;&#160; row: &#39;elenco&#39;,<br />&#160;&#160;&#160; page: &#39;header[currentPage]&#39;,<br />&#160;&#160;&#160; total: &#39;header[pageCount]&#39;,<br />&#160;&#160;&#160; records: &#39;header[recordCount]&#39;,<br />&#160;&#160;&#160; repeatitems: false<br />}</p>
<p>but the grid displays "undefined".</p>
<p>With FireBug I inspected into the grid.base.js and i saw that textContent property is an empty string while text property is undefined.</p>
<p>Obviously:</p>
<p>&#60;header&#62;<br />&#160;&#160; &#60;currentPage&#62;1&#60;/currentPage&#62;<br />&#160;&#160; &#60;pageCount&#62;3&#60;/pageCount&#62;<br />&#160;&#160; &#60;recordCount&#62;30&#60;/recordCount&#62;<br />&#160;&#160; &#60;pageSize&#62;10&#60;/pageSize&#62;<br />&#60;/header&#62;</p>
<p>and</p>
<p>page: &#39;header&#62;currentPage&#39;,<br />total: &#39;header&#62;pageCount&#39;,<br />records : &#39;header&#62;recordCount&#39;,</p>
<p>works.</p>
<p>Thanks in advance.</p>
]]></description>
        	        	<pubDate>Mon, 01 Jun 2009 09:08:55 +0300</pubDate>
        </item>
</channel>
</rss>