<?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: Form using setColProp</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop</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/form-using-setcolprop/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Form using setColProp</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1582</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1582</guid>
        	        	<description><![CDATA[<p>If this is the full code you have error in function add</p>
<p>function add(idSubGrid){<br />&#160;&#160;&#160;//definition des donn&#233;es editbables<br />&#160;&#160;&#160;$(&#8221;#&#8221;+idSubGrid).setColProp(&#39;surname&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>&#160;&#160;editable:true,</strong><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;});</p>
<p>...</p>
]]></description>
        	        	<pubDate>Tue, 19 Aug 2008 05:37:04 +0300</pubDate>
        </item>
        <item>
        	<title>garnett21 on Form using setColProp</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1580</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1580</guid>
        	        	<description><![CDATA[<p>Sorry,</p>
<p>but i&#39;m using the last one...<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-cry.gif" border="0" alt="Cry" /></p>
]]></description>
        	        	<pubDate>Tue, 19 Aug 2008 05:02:05 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Form using setColProp</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1576</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1576</guid>
        	        	<description><![CDATA[<p>If you use jqGrid version 3.2.1 there was a bug in setColProp.</p>
<p>Switch to last one.</p>
<p>Reagrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 19 Aug 2008 04:40:30 +0300</pubDate>
        </item>
        <item>
        	<title>garnett21 on Form using setColProp</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1574</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/form-using-setcolprop#p1574</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I would like to have two different form&#160;to edit my grid.One&#160;to add rows and an other&#160;to edit row.</p>
<p>so&#160;I&#39;ve made 2 functions</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6442' value='Select Code' data-codeid='sfcode6442' /></p>
<div class='sfcode' id='sfcode6442'>
<p>&#160;function edit(idSubGrid){<br />&#160;&#160;var id = jQuery("#"+idSubGrid).getGridParam(&#39;selrow&#39;); <br />&#160;&#160;if (id) {&#160;</p>
<p>&#160;&#160;&#160;var ret = $("#"+idSubGrid).getRowData(id);&#160;</p>
<p>&#160;&#160;&#160;$("#"+idSubGrid).setColProp(&#39;num&#39;,{editable:true});<br />&#160;&#160;&#160;$("#"+idSubGrid).setColProp(&#39;name&#39;,{editable:true});<br />&#160;&#160;&#160;$("#"+idSubGrid).setColProp(&#39;surname&#39;,{editable:false});<br />&#160;&#160;&#160; //on affiche le formulaire de modification<br />&#160;&#160;&#160;$("#"+idSubGrid).editGridRow( <br />&#160;&#160;&#160;&#160;ret.idPerson,<br />&#160;&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;&#160;editCaption: "Edit a person",<br />&#160;&#160;&#160;&#160;&#160;reloadAfterSubmit:true,<br />&#160;&#160;&#160;&#160;&#160;closeAfterEdit:true,<br />&#160;&#160;&#160;&#160;&#160;height:310<br />&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;);<br />&#160;&#160;} else { <br />&#160;&#160;&#160;alert("Please select row");<br />&#160;&#160;}<br />&#160;}<br />&#160;<br />&#160;function add(idSubGrid){<br />&#160;&#160;&#160;//definition des donn&#233;es editbables<br />&#160;&#160;&#160;$("#"+idSubGrid).setColProp(&#39;surname&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;editable:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;});<br />&#160;&#160;&#160;$("#"+idSubGrid).setColProp(&#39;num&#39;,{editable:false});<br />&#160;&#160;&#160;$("#"+idSubGrid).setColProp(&#39;name&#39;,{editable:false});<br />&#160;&#160; $("#"+idSubGrid).setColProp(&#39;surname&#39;,{editable:true});</p>
<p>&#160;&#160;&#160;$("#"+idSubGrid).editGridRow( <br />&#160;&#160;&#160;&#160;"new",<br />&#160;&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;&#160;addCaption: "Add a Person",<br />&#160;&#160;&#160;&#160;&#160;reloadAfterSubmit:true,<br />&#160;&#160;&#160;&#160;&#160;closeAfterEdit:true,<br />&#160;&#160;&#160;&#160;&#160;height:100<br />&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;);<br />&#160;}</p>
</div>
<p>as you can see to edit a grid I want to set 2 fields (num &#38; name) and to add a row i just need to set only one field (surname).</p>
<p>For the edit form I set the to&#160;columns I want to complete as &#39;editable&#39; and the one I don&#39;t want to complete as &#39;non-editable&#39;.</p>
<p>For tha add form I set the surname field as &#39;editable&#39; and the other columns as &#39;non-editable&#39;</p>
<p>So when&#160;I want to add something, it works&#160;I got a form with&#160;the field I want to complete.But if I want to edit something i got the same form instead of a form with 2 fields.</p>
<p>I wonder myself if the setColProp methods are working properly?</p>
]]></description>
        	        	<pubDate>Tue, 19 Aug 2008 04:05:45 +0300</pubDate>
        </item>
</channel>
</rss>