<?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: beforeShowForm problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/beforeshowform-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/beforeshowform-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on beforeShowForm problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/beforeshowform-problem#p11296</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/beforeshowform-problem#p11296</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This solution is posted many times:</p>
<p>You should not use the setColProp, but show and hide on the table row which is combination of &#8220;tr_&#8221;+ name,</p>
<p>so in your script replace setColProp with</p>
<p>$(&#8221;tr_name&#8221;,formid).show();</p>
<p>and</p>
<p>$(&#8221;tr_name&#8221;,formid).hide();</p>
<p>where name is a name from colModel.</p>
<p>Regards</p>
<p>Tony</p>
<p>P.S. Do not forget to use the formid as parameter in the events. See docs</p>
]]></description>
        	        	<pubDate>Fri, 30 Oct 2009 08:02:36 +0200</pubDate>
        </item>
        <item>
        	<title>vitvoj on beforeShowForm problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/beforeshowform-problem#p11212</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/beforeshowform-problem#p11212</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I have several problems 🙁</p>
<p>First of all,&#160; I try to change my column editable state.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2723' value='Select Code' data-codeid='sfcode2723' /></p>
<div class='sfcode' id='sfcode2723'>
<p>...</p>
<p>navGrid(&#39;#s3pager&#39;,<br />{<br />&#160;&#160; edit:true,<br />&#160;&#160; add:true,<br />&#160;&#160; del:false,<br />&#160;&#160; search:true,<br />&#160;&#160; refresh:true<br />},<br /> {// edit options<br />&#160;&#160;&#160;&#160; beforeShowForm: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;edit&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#mygrid").setColProp(&#39;name&#39;,{editable:true});<br />&#160;&#160;&#160;&#160; }<br />},</p>
<p>{&#160;&#160; // add options<br />&#160;&#160;&#160; beforeShowForm: function() {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;add&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#mygrid").setColProp(&#39;name&#39;,{editable:false});<br />&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; }&#160;&#160;&#160;</p>
<p>}...</p>
</p>
</div>
<p>When I press "add button" I see "add" text but my column still is editable!! The names: mygrid and name are correct!</p>
<p>How to solve this problem. Please help me as soon as posible!</p>
]]></description>
        	        	<pubDate>Thu, 29 Oct 2009 00:51:06 +0200</pubDate>
        </item>
</channel>
</rss>