<?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: Grid won't sort - using xmlstring</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-wont-sort-using-xmlstring</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/grid-wont-sort-using-xmlstring/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Marie Hughes on Grid won't sort - using xmlstring</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-wont-sort-using-xmlstring#p18547</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-wont-sort-using-xmlstring#p18547</guid>
        	        	<description><![CDATA[<p>I figured out our problem. Going back to version 3.6.5 fixed as did updating to 3.7.2 which was released today.</p>
<p>I suspect that the update to 3.7.1 wasn&#39;t done correctly. It looks like the locale file wasn&#39;t updated at the same time.</p>
]]></description>
        	        	<pubDate>Mon, 12 Jul 2010 21:08:16 +0300</pubDate>
        </item>
        <item>
        	<title>Marie Hughes on Grid won't sort - using xmlstring</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-wont-sort-using-xmlstring#p18520</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-wont-sort-using-xmlstring#p18520</guid>
        	        	<description><![CDATA[<p>I&#39;m working on a project where we had set up a prototype that used jqGrid 3.7.1 and local data to draw a series of grids. Sorting worked just fine on all of them.</p>
<p>Now we are creating the "real thing" and our jqGrid is getting its data from an XML String. Once this change was made, the grid stopped sorting. (Or so the original programmer tells me; my task is only to get one grid to sort.)</p>
<p>I have been "googling" like crazy to find out if there is something special I need to do to turn on sorting when using dataype: xmlstring, but I haven&#39;t seen anything or seen any bug reports related to using jqGrid this way.</p>
<p>Here is the declaration of the grid:</p>
<p>&#160;&#160;&#160; $("#clientNotesTable").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xmlstring&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;datastr: noteData,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Date&#39;,&#39;Author&#39;,&#39;Type&#39;,&#39;Description&#39;,&#39;Task&#39;,&#39;Modified&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;created&#39;, index: &#39;created&#39;, width: 100, xmlmap: "Created", sorttype:&#39;date&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;authorName&#39;, index: &#39;authorName&#39;, width: 100, xmlmap: "AuthorName"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;type&#39;, index: &#39;type&#39;, width: 100, xmlmap: "Type"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;description&#39;, index: &#39;description&#39;, width: 350, xmlmap: "Description", formatter: descFormatter},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;state&#39;, index: &#39;state&#39;, width: 85, xmlmap: "State", formatter: taskFormatter, align:"center"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;hiddenMod&#39;, index: &#39;hiddenMod&#39;, width: 0, xmlmap: "Modified", hidden:true}],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlReader: { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;root: "notes", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;row: "note", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id:"EntityId"<br />&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;sortname: "Date",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;asc&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; altRows:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; altclass:&#39;altRow&#39;<br />&#160;&#160;&#160; });</p>
<p>I would greatly appreciate any help I can get at this point, particularly as I&#39;m supposed to have this finished by 9 am on Monday and it&#39;s after 5:00 pm on Friday.</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Sat, 10 Jul 2010 03:14:55 +0300</pubDate>
        </item>
</channel>
</rss>