<?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: Disabled dynamic combo doesn't work for first time edit mode.</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode</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/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Brian on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p14010</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p14010</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Your answer to <a class="sficon sfpath" href="http://www.trirand.com/blog/?page_id=393/" target="_blank">[Image Can Not Be Found]<span style="color: #003aaa;"> Forums</span></a> <a class="sficon sfpath" href="http://www.trirand.com/blog/?page_id=393/help" target="_blank">[Image Can Not Be Found]<span style="color: #003aaa;"> Help</span></a> <a class="sficon sfpath" href="http://www.trirand.com/blog/?page_id=393/help/formatterselect-1" target="_blank">[Image Can Not Be Found]<span style="color: #003aaa;"> formatter:&#8217;select&#8217;</span></a>&#160; is also a good&#160;here. Just&#160;call the php&#160;to obtain the value and then&#160;create&#160;the grid.</p>
<p>Thanks,</p>
<p>Brian</p>
]]></description>
        	        	<pubDate>Mon, 18 Jan 2010 22:38:41 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p14005</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p14005</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The second parameter of setTimeout is integer and not a string. For me the code work like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1587' value='Select Code' data-codeid='sfcode1587' /></p>
<div class='sfcode' id='sfcode1587'>
<p>beforeShowForm : function(formid) {</p>
<p>setTimeout( jQuery(&#8221;#id&#8221;,formid).attr(&#39;disabled&#39;,&#39;disabled&#39;), 200);</p>
<p>}</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3485' value='Select Code' data-codeid='sfcode3485' /></p>
<div class='sfcode' id='sfcode3485'>
<p>Regards</p>
<p>Tony</p>
</div>
</div>
]]></description>
        	        	<pubDate>Mon, 18 Jan 2010 22:02:45 +0200</pubDate>
        </item>
        <item>
        	<title>Brian on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p13998</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p13998</guid>
        	        	<description><![CDATA[<p>Is dataUrl called after beforeShowForm? If so, can you please reverse the order?</p>
<p>The same problem occurs with 3.6.2. The first edit form appears&#160;enabled&#160;for edittype select.</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#8221;#symbols_list&#8221;).navGrid(&#39;#symbols_pager&#39;,{refresh: true, edit: true, add: true, del: true, search: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { // edit options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeShowForm: function(formid) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#source&#39;,formid).attr(&#39;disabled&#39;,true);<br />&#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; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { // add options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeShowForm: function(formid) {&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#source&#39;,formid).removeAttr(&#39;disabled&#39;);<br />&#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; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );</p>
</p>
<p>Thanks,</p>
<p>Brian</p>
]]></description>
        	        	<pubDate>Mon, 18 Jan 2010 21:20:31 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11651</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11651</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please try with 3.6 version of jqGrid</p>
<p>Thanks</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 09 Nov 2009 09:09:16 +0200</pubDate>
        </item>
        <item>
        	<title>jamie on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11617</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11617</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>I have found a tricky way to solve this problem, hope this can helps if others face the same problem.</p>
</p>
<p>Here&#39;s the Idea, click edit or add button when the document ready using jquery and close the modalForm, so we don&#39;t allowed user click for the 1st time, since it has been done by script. Below is the scripts :</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5287' value='Select Code' data-codeid='sfcode5287' /></p>
<div class='sfcode' id='sfcode5287'>
<p>$(document).ready(function(){</p>
<p>&#160;&#160; &#160;$(&#39;#addWRbtn&#39;).click();</p>
<p>&#160;&#160; &#160;$(&#39;.ui-jqdialog-titlebar-close&#39;).click();</p>
<p>});</p>
</div>
<p>Hope This helps.</p>
]]></description>
        	        	<pubDate>Fri, 06 Nov 2009 22:25:05 +0200</pubDate>
        </item>
        <item>
        	<title>jamie on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11602</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11602</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
</p>
<p>Thanks for your suggestion, but it still doesn&#39;t work.</p>
</p>
<p>Here&#39;s &#160;what I do :</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2834' value='Select Code' data-codeid='sfcode2834' /></p>
<div class='sfcode' id='sfcode2834'>
<p>&#160;beforeShowForm : function(formid) {</p>
<p>&#160;&#160; &#160; &#160; &#160; setTimeout( jQuery(&#8221;#id&#8221;,formid).attr(&#39;disabled&#39;,&#39;disabled&#39;),&#39;2000&#39;);</p>
<p>&#160;<span> </span>}</p>
</div>
<p>The weird thing is, when you click edit button for the first time, the disabled doesn&#39;t work, but when you click edit for the second time and so forth it&#39;s works.</p>
</p>
<p>So I think isn&#39;t related to ajax response, because the problem should occur every time I click edit if it is caused by ajax response because every click do the same ajax process.</p>
</p>
<p>Please help me solve this problem.</p>
</p>
<p>Thanks a lot Tony.</p>
]]></description>
        	        	<pubDate>Fri, 06 Nov 2009 10:27:46 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11586</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11586</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think this is not a bug, bu rather it caused from the ajax response &#8211; it is delayed and so it is quite possible that one it is enabled, but in other cases not. I recommend you to use the setTimeout function applied to the</p>
<p><input type='button' class='sfcodeselect' name='sfselectit774' value='Select Code' data-codeid='sfcode774' /></p>
<div class='sfcode' id='sfcode774'>
<p>jQuery(&#8221;#id&#8221;,formid).attr(&#39;disabled&#39;,&#39;disabled&#39;);</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 06 Nov 2009 09:44:19 +0200</pubDate>
        </item>
        <item>
        	<title>jamie on Disabled dynamic combo doesn't work for first time edit mode.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11581</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabled-dynamic-combo-doesnt-work-for-first-time-edit-mode#p11581</guid>
        	        	<description><![CDATA[<p>Dear All,</p>
<p>I create dynamic combo in modal editform using the editOptions:dataUrl, I want this combo is disabled (can&#39;t be changed) in edit mode.</p>
<p>But I found a problem, the disabled doesn&#39;t work for first edit but it works for second edit, or after we klik add.</p>
<p>Here&#39;s the script :&#160;</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5506' value='Select Code' data-codeid='sfcode5506' /></p>
<div class='sfcode' id='sfcode5506'>
<p>// script for create object</p>
<p>{name:&#39;id&#39;,index:&#39;id&#39;, width:150, editable:true,formoptions:{ rowpos:1, elmprefix:"(*)"},edittype:"select",editoptions:{dataUrl:&#39;?c=webredirection&#38;m=getPackageID&#39;}},</p>
</p>
<p>//script for add button</p>
</p>
<p>$("#addWRbtn").click(function(){</p>
<p><span> </span>jQuery("#webRedr").editGridRow("new",{height:350,width:400,reloadAfterSubmit:false,closeOnEscape:true,bottominfo:" Fields marked with (*) are required", closeAfterAdd: true,</p>
<p><span> </span>beforeShowForm : function(formid) {</p>
<p><span> </span> &#160; jQuery("#id",formid).removeAttr("disabled");</p>
<p><span> </span>}<span> </span> });</p>
<p>});</p>
<p>//script for edit button</p>
</p>
<p>$("#editWRbtn").click(function(){</p>
<p><span> </span>var gr = jQuery("#webRedr").getGridParam(&#39;selrow&#39;);</p>
<p><span> </span>if( gr != null ) jQuery("#webRedr").editGridRow(gr,{height:350,width:400,reloadAfterSubmit:false,closeOnEscape:true,bottominfo:"Fields marked with (*) are required", closeAfterAdd: true,</p>
<p>&#160;&#160; beforeShowForm : function(formid) {</p>
<p>&#160;&#160; &#160; jQuery("#id",formid).attr(&#39;disabled&#39;,&#39;disabled&#39;);</p>
</p>
<p>&#160;<span> </span>}</p>
<p>});</p>
</p>
</div>
<p>I tried to use the readonly attribute instead disabled, but it seems the readonly can&#39;t use for select (drop down) object.</p>
<p>Please help me.</p>
</p>
<p>Thanks.</p>
<p>-Jamie-</p></p>
]]></description>
        	        	<pubDate>Fri, 06 Nov 2009 08:50:51 +0200</pubDate>
        </item>
</channel>
</rss>