<?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: A few small issues...</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues</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/bugs/a-few-small-issues/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>thor78 on A few small issues...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9850</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9850</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Alright, local works ok, the only thing that bothers me is that whenever I sort, it starts sorting the local data (50 rows) and the list flickers and then it goes ahead and does the sort from the server and list flickers again with correct results.</p>
<p>Can I get rid of this local unneccessary/annoying sorting?</p>
<p>Thanks,</p>
<p>Thor.</p>
]]></description>
        	        	<pubDate>Fri, 18 Sep 2009 08:56:03 +0300</pubDate>
        </item>
        <item>
        	<title>tony on A few small issues...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9817</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9817</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think that all is correct. If you have json datatype you should have a valid url. If you do not want to use url you should use datatype set to local. Try not to use other plugins - just jqGrid and try (this is for 2).</p>
<p>About 3.&#160; I will think, but the options array in the grid is going bigger and bigger (which I do not want to happen).</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 18 Sep 2009 03:09:06 +0300</pubDate>
        </item>
        <item>
        	<title>thor78 on A few small issues...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9787</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9787</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>the url parameter is still giving me headaches.&#160; It looks like when you have a json/POST situation, things do not work correctly.</p>
<p>If I leave url blank (or leave it out), there will be some javascript/ajax errors (as previously mentioned above).&#160; However, if I put in something in that url parameter, the error goes away.&#160; However, when I put my app live on the server, it will POST to that url everytime I ask something from the server, which is very unfortunate and slows down everything (and makes an unnecessary post call)</p>
<p>Any suggestions?</p>
<p>Thanks,</p>
<p>Thor.</p>
]]></description>
        	        	<pubDate>Wed, 16 Sep 2009 21:53:22 +0300</pubDate>
        </item>
        <item>
        	<title>thor78 on A few small issues...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9776</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9776</guid>
        	        	<description><![CDATA[<p>Just figured out that having url:&#39;&#39; or leaving out url parameter will make things break in #2.&#160; Once I added some bogus url there, it worked fine!&#160; So definately a bug there!</p>
<p>If you have any input on #3, that would be appreciated 🙂</p>
</p>
<p>Thanks,</p>
<p>Thor.</p>
]]></description>
        	        	<pubDate>Wed, 16 Sep 2009 13:39:50 +0300</pubDate>
        </item>
        <item>
        	<title>thor78 on A few small issues...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9775</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9775</guid>
        	        	<description><![CDATA[<p>Just found out that #2 makes all of my jQuery code not work.</p>
<p>Thanks,</p>
<p>Thor.</p>
]]></description>
        	        	<pubDate>Wed, 16 Sep 2009 13:17:09 +0300</pubDate>
        </item>
        <item>
        	<title>thor78 on A few small issues...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9773</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9773</guid>
        	        	<description><![CDATA[<p>Just managed to fix #1, apparently the styling had changed between versions - overflow is now set to auto instead of specifically setting it to overflow-x: hidden and overflow-y:auto.</p>
<p>Still trying to figure the other stuff out.</p>
<p>Thanks,</p>
<p>Thor.</p>
]]></description>
        	        	<pubDate>Wed, 16 Sep 2009 12:24:11 +0300</pubDate>
        </item>
        <item>
        	<title>thor78 on A few small issues...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9772</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/a-few-small-issues#p9772</guid>
        	        	<description><![CDATA[<p>Hi Tony, I just upgraded the grid to the latest 3.5 version... lots of stuff that has changed - thanks alot!</p>
<p>Some issues though that I came across as I upgraded:&#160; (my grid code is at the bottom)</p>
</p>
<p>1.&#160; I am getting a horizontal scrollbar showing up on the grid and I can slide it little bit to the right. (I don&#39;t want it)&#160; Previously this was not a problem.&#160; I am also getting a vertical scrollbar, but I want that since I am showing 50 records at a time.</p>
</p>
<p>2. I remember in the last version, there was some bug regarding datatype:local/json.&#160; I had to use local back then, but now json is finally working (Thank you!).&#160; However, for some reason, when I set it to json, Firefox complains (from firebug) as following:</p>
<p><span class="objectBox objectBox-errorMessage hasTwisty ">uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: <a href="http://dev.site.com/boxfixrate2/Solo/Solo/Hero/WebCore/JS/jquery-1.3.2.min.js" rel="nofollow" target="_blank">http://dev.site.com/boxfixrate2/Solo/Solo/Hero/WebCore/JS/jquery-1.3.2.min.js</a> :: anonymous :: line 19" data: no]</span></p>
</p>
<p>3. Is there any way I can make sorting default to descending (instead of ascending).&#160; A good example is the column Modified Date. Users are usually interested in seeing the newest date first when sorting this field (hence, they want descending order when they click the sort column). Have you implemented thsi feature?&#160; If not, is there a workaround?</p>
</p>
<p>Thanks alot for your help.&#160; Here is my grid code for reference:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; celledit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;, &#39;Rel&#39;, &#39;Name&#39;, &#39;Skills&#39;, &#39;Desired Role&#39;, &#39;City&#39;, &#39;St&#39;, &#39;Desired Sal.&#39;, &#39;Last Modified&#39;, &#39;WA&#39;, &#39;Edu&#39;, &#39;DET&#39;, &#39;SEC&#39;],<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;&#160; { name: &#39;id&#39;, index: &#39;id&#39;, hidden: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;score&#39;, index: &#39;score&#39;, sorttype: &#39;int&#39;, hidden: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;fullname&#39;, index: &#39;fullname&#39;, edittype: &#39;text&#39;, sorttype: &#39;text&#39;, width: 124 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;skillcount&#39;, index: &#39;skillcount&#39;, width: 50, align: &#39;right&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;desiredrolestring&#39;, index: &#39;desiredrolestring&#39;, width: 140 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;city&#39;, index: &#39;city&#39;, width: 85 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;state&#39;, index: &#39;state&#39;, width: 45 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;desiredsalaryratetohour&#39;, index: &#39;desiredsalaryratetohour&#39;, sorttype: &#39;text&#39;, width: 95, align: &#39;right&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;modified&#39;, index: &#39;modified&#39;, width: 100, align: &#39;center&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;workauthorization&#39;, index: &#39;workauthorization&#39;, width: 55 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;highestdegree&#39;, index: &#39;highestdegree&#39;, width: 50 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;desiredemptype&#39;, index: &#39;desiredemptype&#39;, width: 65 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;securitylevel&#39;, index: &#39;securitylevel&#39;, width: 45}],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: "400px",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "profiles",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "curPage",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "totalPageCount",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "recordCount",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: &#39;disable&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;score&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onPaging: function(pgButton) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; setTimeout(function() { getSearchResults(1); }, 1);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSortCol: function(index, colindex, sortorder) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").setGridParam({ page: 1 });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; setTimeout(function() { getSearchResults(1); }, 1);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; afterInsertRow: function(rowid, rowdata, rowelem) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var link = &#39;&#60;a href="../Profile/ViewProfile.aspx?kid=&#39; + rowid + &#39;&#38;mode=1&#38;k=&#39; + encodeURIComponent(cur_keywords) + &#39;" target="_blank"&#62;&#39; + rowdata.fullname + &#39;&#60;/a&#62;&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").setCell(rowid, &#39;fullname&#39;, link, {});</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var relScore = Math.ceil(rowdata.score * 100); //double number, 1 is 100%, 0.45 is 45%<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").setCell(rowid, &#39;score&#39;, relScore + &#39;%&#39;, {});</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (rowdata.securitylevel == &#39;No&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").setCell(rowid, &#39;securitylevel&#39;, &#39;N/A&#39;);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var skills = &#39;&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (rowdata.skillcount == null &#124;&#124; rowdata.skillcount == &#39;&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; skills = &#39;-&#160; &#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; skills = &#39;&#60;a style="padding-right:7px" id="sk&#39; + rowid + &#39;" href="javascript:showSeekerSkills(\&#39;&#39; + rowid + &#39;\&#39;);"&#62;&#39; + rowdata.skillcount + &#39;&#60;/a&#62;&#39;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").setCell(rowid, &#39;skillcount&#39;, skills, {});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 50,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rownumbers: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 955,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;../../images/jqgrid&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Wed, 16 Sep 2009 10:54:24 +0300</pubDate>
        </item>
</channel>
</rss>