<?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: View form first field on all grids displays the column value twice. </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/view-form-first-field-on-all-grids-displays-the-column-value-twice</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/view-form-first-field-on-all-grids-displays-the-column-value-twice/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nelsonm on View form first field on all grids displays the column value twice. </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/view-form-first-field-on-all-grids-displays-the-column-value-twice#p25697</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/view-form-first-field-on-all-grids-displays-the-column-value-twice#p25697</guid>
        	        	<description><![CDATA[</p>
<p>I just noticed today that the first column field displayed in the view records form of all my grids shows multiple values.&#160; I upgraded to the lastest version 4.3.1 of jqGrid but it made no difference.</p>
<p>When you select a record for the first time then click on the view button, some how the record ID gets displayed along with the current value as shown below.</p>
</p>
<p><a href="http://www.nados.com/public/jqgrid-view1.PNG"><img src="http://www.nados.com/public/jqgrid-view1.PNG" width="100"  class="sfimageleft spUserImage" alt="view form" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>Then, when i navigate to the next record, the current value of the first column field is displayed twice.</p>
</p>
<p><a href="http://www.nados.com/public/jqgrid-view2.PNG"><img src="http://www.nados.com/public/jqgrid-view2.PNG" width="100"  class="sfimageleft spUserImage" alt="view form2" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
</p>
<p>I don&#39;t know if i am some how doing it or what.&#160; Has anyone seen this before?</p>
</p>
<p>All of the grids do it so Here is one of the grids:</p>
<blockquote>
<p>&#160;&#160;&#160; $(&#39;#tabw1-grid&#39;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;TBID&#39;, &#39;Time Block&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//use &#39;id&#39; if you want aftersubmit: function new-id to work.<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;id&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; index:&#39;wt.TBID&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 70, fixed: true,&#160; align:&#39;center&#39;, sortable:false, editable:false, edittype:&#39;text&#39;, editoptions:{readonly:true,size:10}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;wt.TimeBlock&#39;,&#160;&#160;&#160;&#160; index:&#39;wt.TimeBlock&#39;,&#160;&#160;&#160;&#160; width:200, fixed:false,&#160; align:&#39;center&#39;, sortable: true, editable:true,&#160; edittype:&#39;text&#39;, editoptions:{size:25}, formoptions:{rowpos: 1, label:&#39;Time Block&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160; elmprefix:&#39;*&#39;}, editrules:{required:true, custom:true, custom_func:checkTimeBlock}}<br />&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;url:&#160;&#160;&#160; &#39;php/wo-timeblocktab-script.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;editurl:&#39;php/wo-timeblocktab-script.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;POST&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160; &#160;&#160;&#160;&#160; height: 880,<br />&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#tabw1-pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;toppager: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;rowNum:40,<br />&#160;&#160; &#160;&#160;&#160; &#160;rownumbers: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;rowList:[40,100,300,500],<br />&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;wt.TBID&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#39;asc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true<br />&#160;&#160; &#160;});</p>
<p>&#160;&#160; &#160;$(&#39;#tabw1-grid&#39;).jqGrid(&#39;navGrid&#39;, &#39;#tabw1-pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;{view:true, closeOnEscape:true, cloneToTop:true}, // general parameters that apply to all navigation options below.<br />&#160;&#160; &#160;&#160;&#160; &#160;{jqModal:true, resize:false, width:500, height:&#39;auto&#39;, top:150, left:775, navkeys:[false,38,40], savekey:[true,13], bottominfo:&#39;Fields marked with * are required to Edit Record.&#39;}, // edit options.<br />&#160;&#160; &#160;&#160;&#160; &#160;{jqModal:true, resize:false, width:500, height:&#39;auto&#39;, top:150, left:775, navkeys:[false,38,40], savekey:[true,13], bottominfo:&#39;Fields marked with * are required to Add Record.&#39;, addedrow:&#39;first&#39;, reloadAfterSubmit:false, afterSubmit: addRecordID}, // add options.<br />&#160;&#160; &#160;&#160;&#160; &#160;{jqModal:true, resize:false, width:500, height:&#39;auto&#39;, top:150, left:775, afterSubmit: serverMessage}, // del options.<br />&#160;&#160; &#160;&#160;&#160; &#160;{jqModal:true, resize:false, width:500, height:&#39;auto&#39;, top:150, left:775, multipleSearch:true, sopt:[&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;,&#39;bw&#39;,&#39;bn&#39;,&#39;in&#39;,&#39;ni&#39;,&#39;ew&#39;,&#39;en&#39;,&#39;cn&#39;,&#39;nc&#39;]}, // search options.<br />&#160;&#160; &#160;&#160;&#160; &#160;{jqModal:true, resize:false, width:500, height:&#39;auto&#39;, top:150, left:775, navkeys:[true,38,40]} // view options.<br />&#160;&#160; &#160;);</p>
<p>});</p>
</blockquote>
]]></description>
        	        	<pubDate>Tue, 17 Jan 2012 04:15:47 +0200</pubDate>
        </item>
</channel>
</rss>