<?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: Add record modal not showing all fields after 1st opening</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-record-modal-not-showing-all-fields-after-1st-opening</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/add-record-modal-not-showing-all-fields-after-1st-opening/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>phipps73 on Add record modal not showing all fields after 1st opening</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-record-modal-not-showing-all-fields-after-1st-opening#p1074</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-record-modal-not-showing-all-fields-after-1st-opening#p1074</guid>
        	        	<description><![CDATA[<p>Hi Tony, when will the final release be available? Can you send me the<br />final release so that I can test it against this problem?</p>
<p>Cheers,</p>
<p>Dave</p>
]]></description>
        	        	<pubDate>Tue, 15 Jul 2008 05:14:44 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Add record modal not showing all fields after 1st opening</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-record-modal-not-showing-all-fields-after-1st-opening#p1061</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-record-modal-not-showing-all-fields-after-1st-opening#p1061</guid>
        	        	<description><![CDATA[<p>The feature to edit hidden fields in formedit is added in final release.</p>
<p>Release</p>
]]></description>
        	        	<pubDate>Mon, 14 Jul 2008 11:05:14 +0300</pubDate>
        </item>
        <item>
        	<title>phipps73 on Add record modal not showing all fields after 1st opening</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-record-modal-not-showing-all-fields-after-1st-opening#p1056</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-record-modal-not-showing-all-fields-after-1st-opening#p1056</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have a grid that has inline editing for an 8 column grid (4 columns are hidden, but editable). I also have a function which opens the add row modal form. When I first click the button the modal opens with all correct fields visible and it is possible to add a new record.</p>
<p>If I then try to add another row (after the original modal has closed), the modal opens but only shows a subset of the form fields - it shows the columns that are visible in the grid. If I refresh the page and click the button again the modal opens with the correct fields.</p>
<p>My button code is:</p>
</p>
<p>$("#assignPos").click(function() {<br />&#160;&#160; $("#list").editGridRow("_empty",{top:100,left:340,width:600,height:340,reloadAfterSubmit:true,</p>
<p>onInitializeForm: 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; $("#StartDate",id).datepicker({showOn: &#39;focus&#39;,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;&#160; $("#FinishDate",id).datepicker({showOn: &#39;focus&#39;,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; },url:"assets/includes/assignPosition.cfm?PersonID="+$("#PersonID").val()});<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });</p>
<p>The colModel is:</p>
<p>colModel:[<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tjppid&#39;,key: true,index:&#39;tjppid&#39;,hidden:true,editable:true,editoptions:{readonly:true,size: 15}},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;PositionID&#39;,index:&#39;PositionID&#39;,width:150,editable:true,editoptions:{readonly:true,size:15}},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;PositionType&#39;,index:&#39;PositionType&#39;,width: 270},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ParishName&#39;,index:&#39;ParishName&#39;,width: 270},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;StartDate&#39;,index:&#39;StartDate&#39;,sorttype:"date",editable:true,editoptions:{size:10,maxlength:10},width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;FinishDate&#39;,index:&#39;FinishDate&#39;,sorttype:"date",editable:true,editoptions:{size:10,maxlength:10},width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Position&#39;,index:&#39;Position&#39;,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{value:"0:Select Position;&#60;cfloop query="qPositions"&#62;&#60;cfoutput&#62;#PositionID#:#PositionType# - #ParishName#&#60;cfif recordcount gt currentrow&#62;;&#60;/cfif&#62;&#60;/cfoutput&#62;&#60;/cfloop&#62;"}},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;CommitteeMemberTypeID&#39;,index:&#39;CommitteeMemberTypeID&#39;,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{value:"0:Select Member Type;&#60;cfloop query="qCMType"&#62;&#60;cfoutput&#62;#MemberTypeID#:#MemberType#&#60;cfif recordcount gt currentrow&#62;;&#60;/cfif&#62;&#60;/cfoutput&#62;&#60;/cfloop&#62;"}},<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ClergyStatusID&#39;,index:&#39;ClergyStatusID&#39;,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{value:"0:Select Clergy Status;&#60;cfloop query="qClergyStatus"&#62;&#60;cfoutput&#62;#StatusID#:#Status#&#60;cfif recordcount gt currentrow&#62;;&#60;/cfif&#62;&#60;/cfoutput&#62;&#60;/cfloop&#62;"}}]</p>
<p>I modified the jqgrid.js file so that hidden fields that were editable would be seen in the modal form but maybe this has broken the code? In grid.formedit.js I modified the createData function as follows:</p>
<p>//dc = hc ? "style=&#39;display:none&#39;" : ""; changed to:<br />&#160; dc = hc ? "" : "";&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p>This allows hidden grid columns to be editable in the modal form.</p>
<p>Have I broken jqgrid, or is this a bug?</p>
<p>I am using version 3.2rc</p>
<p>Cheers,</p>
<p>Dave</p>
]]></description>
        	        	<pubDate>Mon, 14 Jul 2008 07:47:25 +0300</pubDate>
        </item>
</channel>
</rss>