<?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: change select options for each row</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row</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/change-select-options-for-each-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7194</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7194</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Aha - you made ajax request, and this request delayed the setting. Also try with async:false in the ajax call.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 12 Jun 2009 02:03:16 +0300</pubDate>
        </item>
        <item>
        	<title>jonhb on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7152</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7152</guid>
        	        	<description><![CDATA[<p>hi,</p>
<p>think i found something, probably not jqgrid related?</p>
<p>i use getJSON to populate the editoptions like this:</p>
<p>$.getJSON(&#39;getLibraryValues.do?&#39;, {libraryType: &#39;WO_ICC_MILESTONE&#39;, superiorOrder: val },<br />&#160; function(j) {<br />&#160;&#160;&#160; var options = &#39;:;&#39;;<br />&#160;&#160;&#160; for (var i = 0; i &#38;lt; j.length; i++) {<br />&#160;&#160;&#160;&#160;&#160;&#160; options += j[i].optionValueParents + &#39;:&#39; + j[i].optionDisplayParents + &#39;;&#39;;<br />&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;options = options.slice(0,-1);<br />&#160;&#160;&#160;&#160;$(&#39;#wogrid&#39;).setColProp(&#39;woMilestoneSubMilestoneId&#39;, {editoptions:{value:options}});<br /><strong>// here&#160;options in grid are correct!!</strong>&#160;</p>
<p>})</p>
<p><strong>// but here outside JSON function&#160;options are wrong.</strong></p>
<p>Is there another way I have to do this?</p>
]]></description>
        	        	<pubDate>Wed, 10 Jun 2009 02:26:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7139</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7139</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>We all have problems with the time.</p>
<p>Could you please get the setted values before to call editRow</p>
<p>I mean</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;amp;&#38;amp; id!==lastsel){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).restoreRow(lastsel);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastsel=id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>var selparams = $("#mygrid").getColProp(&#39;field1&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).editRow(id,true,pickdates,checksave);</p>
</p>
<p>See what values you have in editoptions</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 09 Jun 2009 09:09:00 +0300</pubDate>
        </item>
        <item>
        	<title>jonhb on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7111</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7111</guid>
        	        	<description><![CDATA[<p>hi tony,</p>
<p>any luck finding out if this is a bug in 3.4.4?</p>
<p>running out of time here now. Have to figure this out very soon.</p>
]]></description>
        	        	<pubDate>Tue, 09 Jun 2009 02:25:10 +0300</pubDate>
        </item>
        <item>
        	<title>jonhb on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7079</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7079</guid>
        	        	<description><![CDATA[<p>just now tried 3.5, but i can&#39;t get access to the grid? it&#39;s greyed out like when you open a modal dialog. data and everything is fine.</p>
<p>I&#160;already use UI and have modified some bits so I don&#39;t really want to download a new version. I also see that I have no borders around the cells in the grid and also the Loading information is on top of the grid and not in the middle like in the 3.5 demos.</p></p>
]]></description>
        	        	<pubDate>Fri, 05 Jun 2009 03:49:32 +0300</pubDate>
        </item>
        <item>
        	<title>jonhb on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7075</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7075</guid>
        	        	<description><![CDATA[<p>hi,</p>
<p>i use 3.4.3 yes..</p>
<p>will try 3.5 but hopefully this could be fixed in 3.4.3?</p></p>
]]></description>
        	        	<pubDate>Fri, 05 Jun 2009 02:27:08 +0300</pubDate>
        </item>
        <item>
        	<title>tony on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7048</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7048</guid>
        	        	<description><![CDATA[<p>HEllo,</p>
<p>Sorry to ask you again - which version? (if this is a 3.4.x I see something that I do not like - also if this is the case could you please try with the last 3.5 beta?)</p>
<p>Reagrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 04 Jun 2009 04:46:18 +0300</pubDate>
        </item>
        <item>
        	<title>jonhb on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7011</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7011</guid>
        	        	<description><![CDATA[<p>and also pickdates:</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function pickdates(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+id+"_woPlannedStartupDate","#wogrid").datepicker({dateFormat:"yy-mm-dd"});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+id+"_woPlannedCompletionDate","#wogrid").datepicker({dateFormat:"yy-mm-dd"});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
]]></description>
        	        	<pubDate>Tue, 02 Jun 2009 01:46:14 +0300</pubDate>
        </item>
        <item>
        	<title>jonhb on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7010</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p7010</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>this is rest of the code:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var lastsel;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function checksave(result) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (result.status != 200) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(result.statusText);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;Update failed!&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>and event for grid:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;amp;&#38;amp; id!==lastsel){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).restoreRow(lastsel);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastsel=id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).editRow(id,true,pickdates,checksave);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
]]></description>
        	        	<pubDate>Tue, 02 Jun 2009 01:42:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p6942</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p6942</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please post the rest of code where you edit the cell?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 28 May 2009 04:40:37 +0300</pubDate>
        </item>
        <item>
        	<title>jonhb on change select options for each row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p6915</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/change-select-options-for-each-row#p6915</guid>
        	        	<description><![CDATA[<p>Been searching the forum and found one suggestion to use the berforeSelectRow event but it does not work correctly.</p>
<p>beforeSelectRow: function(id){<br />&#160; rowdata = $(&#39;#grid&#39;).getRowData(id);<br />&#160;&#160;//alert(rowdata[&#39;value&#39;]);<br />&#160;&#160;updateSubMilestone(rowdata[&#39;value&#39;]);<br />&#160;&#160;return true;<br />}</p>
<p>function updateSubMilestone(val) {<br />// set options here based on val<br />jQuery(&#39;#grid&#39;).setColProp(&#39;field1&#39;, {editoptions: {value:options}});</p>
<p>}</p>
<p>It works to some extent, but it is one step behind, ie when I click a row it does not get populated until i click a new row! So the options are always for the previous row.</p>
<p>Are there any other events I could use?</p>
]]></description>
        	        	<pubDate>Wed, 27 May 2009 02:05:23 +0300</pubDate>
        </item>
</channel>
</rss>