<?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: Hiding cols in grid but show in add/edit/view</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview</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/hiding-cols-in-grid-but-show-in-addeditview/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Renso on Hiding cols in grid but show in add/edit/view</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9490</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9490</guid>
        	        	<description><![CDATA[<p>Anytime, good luck!</p>
]]></description>
        	        	<pubDate>Tue, 08 Sep 2009 17:15:57 +0300</pubDate>
        </item>
        <item>
        	<title>Romyn on Hiding cols in grid but show in add/edit/view</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9357</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9357</guid>
        	        	<description><![CDATA[<p>Thanks Renso,</p>
</p>
<p>That looks to be a pretty comprehensive reply so will no doubt be just what I needed - will be getting round to using it in the next couple of days.</p>
</p>
<p>Thanks again for your time.</p>
</p>
<p>Regards</p>
<p>Romyn</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 10:01:25 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on Hiding cols in grid but show in add/edit/view</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9263</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9263</guid>
        	        	<description><![CDATA[<p>You can also check out my blog for some other examples:</p>
<p><a title="Show/Hide jqGrid columns" href="http://geekswithblogs.net/renso/archive/2009/09/03/jqgrid-hide-columns-but-show-when-editingadding.aspx" target="_blank"></a><a href="http://geekswithblogs.net/rens" rel="nofollow" target="_blank">http://geekswithblogs.net/rens</a>.....dding.aspx</p>
<p><img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p>
]]></description>
        	        	<pubDate>Thu, 03 Sep 2009 08:09:14 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on Hiding cols in grid but show in add/edit/view</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9262</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9262</guid>
        	        	<description><![CDATA[<p>Romyn, the jqGrid supports this very nicely. Here is an example, it contains a lot but wanted to also show you some other tips that you may find helpful, see the explanation of the tip by matching the color with the colored comment at the end of this post.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7139' value='Select Code' data-codeid='sfcode7139' /></p>
<div class='sfcode' id='sfcode7139'>&#160;&#160;&#160;&#160;&#160;&#160;&#160; .jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: listURL,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; postData: { accountId: $(&#39;fieldset#AccountDetails #Id&#39;).val() },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;, &#39;&#39;, &#39;Name&#39;, &#39;First Name&#39;, &#39;Middle name&#39;, &#39;Last Name&#39;, &#39;Phone&#39;, &#39;Email&#39;, &#39;Activity&#39;, &#39;Title&#39;, &#39;Prefix&#39;, &#39;Suffix&#39;, &#39;Account Role&#39;, &#39;DM Role&#39;, &#39;DISC Profile&#39;, &#39;Notes&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Id&#39;, index: &#39;Id&#39;, width: 35, sortable: true, align: "center", resizable: false, hidden: false, editable: false, editoptions: { readonly: true, size: 0} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: #99cc00;"> { name: &#39;EditUrl&#39;, index: &#39;&#39;, width: 28, editable: false, sortable: false, align: "center", resizable: false },</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;FullNameUrl&#39;, index: &#39;FullNameUrl&#39;, width: 80, editable: false, sortable: true, align: "left", resizable: true, editrules: { edithidden: false} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: #ff0000;"> { name: &#39;FirstName&#39;, index: &#39;FirstName&#39;, width: 40, editable: true, sortable: true, align: "left", resizable: true, hidden: true, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;MiddleName&#39;, index: &#39;MiddleName&#39;, width: 40, editable: true, sortable: true, align: "left", resizable: true, hidden: true, editrules: { edithidden: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;LastName&#39;, index: &#39;LastName&#39;, width: 40, editable: true, sortable: true, align: "left", resizable: true, hidden: true, editrules: { edithidden: true} },</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;PhoneNumber&#39;, index: &#39;PhoneNumber&#39;, width: 80, editable: false, sortable: false, align: "left", resizable: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Email&#39;, index: &#39;Email&#39;, width: 80, editable: false, sortable: false, align: "left", resizable: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ActivityStatus&#39;, index: &#39;ActivityStatus&#39;, width: 40, editable: true, sortable: true, align: "left", resizable: true, edittype: "select", editoptions: { value: allActivityStatuses }, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Title&#39;, index: &#39;Title&#39;, width: 80, editable: true, sortable: true, align: "left", resizable: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Prefix&#39;, index: &#39;Prefix&#39;, width: 80, editable: true, sortable: true, align: "left", resizable: true, hidden: true, editrules: { edithidden: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Suffix&#39;, index: &#39;Suffix&#39;, width: 80, editable: true, sortable: true, align: "left", resizable: true, hidden: true, editrules: { edithidden: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#39;ContactRoleNames&#39;, index: &#39;ContactRoleNames&#39;, width: 40, editable: true, hidden: true, hidedlg: true, edittype: "select", editoptions: { multiple: true, size: 4, value: allAccountRoles }, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;DMRole&#39;, index: &#39;DMRole&#39;, width: 30, editable: true, sortable: false, align: "center", resizable: false, edittype: "select", hidden: true, editoptions: { value: allDMRoles }, editrules: { edithidden: true, required: true} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #3366ff;">{ name: &#39;DISCProfile&#39;, index: &#39;DISCProfile&#39;, width: 30, editable: true, sortable: false, align: "center", resizable: false, edittype: "select", hidden: true, editoptions: { value: allDISCProfiles }, editrules: { edithidden: true, required: true} },</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Notes&#39;, index: &#39;Notes&#39;, width: 85, editable: true, sortable: false, align: "left", resizable: true, edittype: "textarea", editoptions: { rows: "2", cols: "40"} }</div>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],</p>
<p><span style="color: #ff0000;">To your question, I display the Full Name of the contact, but want to hide the full name when editing but show the FirstName, MiddleName and LastName when editing/adding. Notice the "<strong>hidden: true, editrules: { edithidden: true}</strong>" properties.</span></p>
</p>
<p><span style="color: #99cc00;">This EditUrl is visible in the grid, but its just an image hyperlink to another page and cannot be edited, hence, "<strong>editable: false</strong>"</span></p>
</p>
<p><span style="color: #3366ff;">The DISCProfile column has a drop down box with dynamically loaded data: "<strong>editoptions: { value: allDISCProfiles }</strong>". This data is retrieved before the grid is defined in the JavaScript file with:</span></p>
<p><span style="color: #3366ff;">var allDISCProfiles = $.ajax({ url: $(&#39;#ajaxAllDISCProfilesUrl&#39;).val(), <strong>async: false</strong>, success: function(data, result) { if (!result) alert(&#39;Failure to retrieve the DISC Profiles.&#39;); } }).responseText;</span></p>
</p>
<p>Hope this helps</p></p>
]]></description>
        	        	<pubDate>Thu, 03 Sep 2009 07:57:27 +0300</pubDate>
        </item>
        <item>
        	<title>Romyn on Hiding cols in grid but show in add/edit/view</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9244</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hiding-cols-in-grid-but-show-in-addeditview#p9244</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have a grid which I have what I can only describe as containing "Core" data and "Minor" data. What I&#39;d like to be able to do is to show the Core data in the main grid view but to allow the user to add/edit/view the Core and Minor data when they open the relevant dialog.</p>
<p>In essence this would be like having hidden columns that were viewable/updatable when the dialogs were opened with form editing/viewing.</p>
<p>The Minor data is only of interest to some so I don&#39;t want to show it in the main grid view and this would also help keep the grids width down and not have a long horiz scroll.</p>
</p>
<p>Is this possible? Assistance, as always, greatly appreciated.</p>
</p>
<p>Regards</p>
<p>Romyn</p>
]]></description>
        	        	<pubDate>Wed, 02 Sep 2009 22:19:55 +0300</pubDate>
        </item>
</channel>
</rss>