<?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: setSelection problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/setselection-problem</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/setselection-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rekna1 on setSelection problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setselection-problem#p9000</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setselection-problem#p9000</guid>
        	        	<description><![CDATA[<p>Solved it... It was an error in my code, when the second grid is reloaded (because of a change in row selection in the first), I needed to clear the id of the selected row of the second grid, because this would not be valid anymore.</p></p>
]]></description>
        	        	<pubDate>Thu, 27 Aug 2009 16:14:58 +0300</pubDate>
        </item>
        <item>
        	<title>rekna1 on setSelection problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setselection-problem#p8999</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setselection-problem#p8999</guid>
        	        	<description><![CDATA[<p>I have a gridComplete event, which sets the selection using setSelection. In simple scenarios this works just fine. But I have a more complex scenario, where this causes a second grid to fail during loading (the loadtext of the second grid , does not disappear). After that, selecting a row in the first grid does not make the second grid reload anymore. Its the setSelection on the second grid that seems to fail.</p>
<p>What I found is, that if I execute setSelection with one second delay (using the setTimeout function), everything works fine ( I copied the idea from the refresh button event handler). However, the delay is quite annoying, I was hoping the gridComplete would be the correct time and place to use the setSelection.</p>
<p>Reloading of the second grid is done by using the onSelectRow event of the first grid. I don&#39;t understand why the delay is needed.</p>
<p>It seems, a javascript error is triggered, when I use the solution without the delay. The error is : this[0].innerHTML is undefined, somewhere in jquery code. The call stack reveals its origin is from the grid.setSelection command in my gridComplete event.</p>
<p>I can not provide a simple example, because it part of a complex web application, where jqrid scripts are generated through server side helper functions. Maybe some hints in which direction I need to look, to solve the problem?</p>
]]></description>
        	        	<pubDate>Thu, 27 Aug 2009 15:55:03 +0300</pubDate>
        </item>
</channel>
</rss>