<?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: Need help with hide/show column &#38; datepicker &#38; count of columns</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns</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/need-help-with-hideshow-column-datepicker-count-of-columns/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>DeaDSouL on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1431</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1431</guid>
        	        	<description><![CDATA[<p>I see..</p>
<p>Thanks a lot brother&#160;</p>
<p>you are so helpful</p>
</p>
<p>best regards</p>
]]></description>
        	        	<pubDate>Wed, 06 Aug 2008 20:39:52 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1392</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1392</guid>
        	        	<description><![CDATA[<p>If you use edittype:select the value text that is displayed in a table cell is selected by default. If you add new row a first one is selected.</p>
]]></description>
        	        	<pubDate>Tue, 05 Aug 2008 01:31:47 +0300</pubDate>
        </item>
        <item>
        	<title>DeaDSouL on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1384</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1384</guid>
        	        	<description><![CDATA[<p>Thanks for help Tony</p>
<p>"What you mean multiselect does not work in &#8220;Custom edit&#8221;? -&#160; What is &#8220;Custom edit&#8221;?"</p>
<p>I ment that you can&#39;t use "multiselect:true" in the &#8220;Custom edit&#8221; example page in the demo folder.</p>
</p>
<p>I wonder is there anyway to make the value selected by default if I used (edittype:"select") ?</p>
<p>Now, if I used (edittype:"select"), I wonder if there is anyway to make the default value (the selected value before editing) is selected when I edit the row.</p>
<p>like this (&#60;option value="32" <span style="text-decoration: underline;"><strong><em>selected</em></strong></span>&#62;...&#60;/option&#62;)</p>
<p>Thanks for everything bro</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 04 Aug 2008 11:04:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1368</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1368</guid>
        	        	<description><![CDATA[<p>About the first issue. This is z-Index problem. I will change this behavior. Currently you can resolve this when you edit the datepicke css and change the z-index of the datepicker to something like z-index:3500. By default jqModal uses 3000 to z-index.</p>
<p>What you mean multiselect does not work in "Custom edit"? -&#160; What is "Custom edit"?</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 04 Aug 2008 04:50:18 +0300</pubDate>
        </item>
        <item>
        	<title>DeaDSouL on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1357</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1357</guid>
        	        	<description><![CDATA[<p>how are you today Tony?</p>
<p>about the datepicker.. it didn&#39;t work properly.. <br />well, it shows the calender but i can&#39;t select the date.. because of the edit/add window..</p>
<p>please check it</p>
<p>ya, one more thing.. the multiselect doesn&#39;t work with the "Custom edit"</p>
]]></description>
        	        	<pubDate>Sat, 02 Aug 2008 23:08:52 +0300</pubDate>
        </item>
        <item>
        	<title>DeaDSouL on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1345</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1345</guid>
        	        	<description><![CDATA[<p>thanks a lot Tony..</p>
<p>I&#39;ll give it a try</p>
<p>Best regards</p>
<p>Thanks again</p>
]]></description>
        	        	<pubDate>Fri, 01 Aug 2008 10:29:50 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1341</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1341</guid>
        	        	<description><![CDATA[<p>...</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; loadtext: &#8220;$LoadMsg&#8221;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; height:&#39;100%&#39;<br />&#160;&#160;&#160; &#160;&#160;&#160; }).navGrid(&#39;#Bar&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {}, //options</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {height:410,width:400,reloadAfterSubmit:false,</p>
<p><strong>onInitializeForm: function(formid) {</strong></p>
<p><strong>$(&#8221;#issueDate&#8221;,formid).datepicker({dateFormat:&#8221;yy-mm-dd&#8221;});</strong></p>
<p><strong>}<br /></strong></p>
<p>}, // edit options<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {height:400,reloadAfterSubmit:true,</p>
<p><strong>onInitializeForm: function(formid) {</strong></p>
<p><strong>$(&#8221;#issueDate&#8221;,formid).datepicker({dateFormat:&#8221;yy-mm-dd&#8221;});</strong></p>
<p><strong>}<br /> </strong></p>
<p>}, // add options<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {reloadAfterSubmit:false}, // del options<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {} // search options<br />&#160;&#160;&#160; &#160;&#160;&#160; );<br />&#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Fri, 01 Aug 2008 03:02:21 +0300</pubDate>
        </item>
        <item>
        	<title>DeaDSouL on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1340</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1340</guid>
        	        	<description><![CDATA[<p>Thanks a lot Tony,..</p>
<p>the main cause of th first issue was the " &#39; " it was in the language file for example (Tony&#39;s website)</p>
<p>and the second issue is solved when i add the show/hide in</p>
<p>jQuery(document).ready(function(){</p>
<p>&#160;...........</p>
<p>}</p>
<p>but the third issue.. i don&#39;t know how to do it... if you just give an example on my previous code... i&#39;ll be greatful</p>
</p>
<p>Best Regards</p>
<p>DeaDSouL</p>
]]></description>
        	        	<pubDate>Thu, 31 Jul 2008 09:29:07 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1289</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1289</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>1. About the first issue. I do not think that this is a bug.</p>
<p>You can perform some test. Set the width of all columns</p>
<p>to be 25-30 and see if all columns are here. I&#39;m not sure, but</p>
<p>maybe you have enclose the grid in html element which have</p>
<p>overflow hidden.</p>
<p>2. For a single show and hide use jQuery(&#8221;#Table&#8221;).hideCol("ID")</p>
<p>and not as array - I will check this.</p>
<p>3. Where - in inline editing or in form editing module. If this is</p>
<p>in form editing you can use onInitializeForm event to attach</p>
<p>datepicker to element</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 28 Jul 2008 02:33:55 +0300</pubDate>
        </item>
        <item>
        	<title>DeaDSouL on Need help with hide/show column &#38; datepicker &#38; count of columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1278</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-hideshow-column-datepicker-count-of-columns#p1278</guid>
        	        	<description><![CDATA[<p>hi Tony,</p>
<p>this is just a great plugin..</p>
<p>i have three problems with jqGrid and it seems i can&#39;t solve them out.</p>
<ul>
<li>i can&#39;t have more than 16 columns in jqGrid.. and i don&#39;t know why<br />I think its a bug or something.. please check this (<a href="http://www.trirand.com/blog/?p=19#comment-590" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....omment-590</a>)</li>
<li>i&#39;ve tried and tried to show and hide the columns but it was useless.<br />i need some help. can you tell me what is wrong with the following code?</li>
<li>the same thing with the datepicker.. i couldn&#39;t make it work.. please if you don&#39;t mind just tell me how to make this column "issueDate" works with "datepicker"?</li>
</ul>
<p>here is my code (php):</p>
<p>.....<br />echo &#60;&#60;&#60;EOF</p>
<p>&#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160; jqGridInclude("$JS/grid/");<br />&#160;&#160;&#160; jQuery(document).ready(function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#Table").jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; url:&#39;?Option=show&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;ID&#39;, &#39;$ArName&#39;, &#39;$EnName&#39;, &#39;$Sex&#39;, &#39;$FileNo&#39;, &#39;$RefNo&#39;, &#39;$Salary&#39;, &#39;$Contract&#39;, &#39;$PassNo&#39;, &#39;$ArIssuePlace&#39;, &#39;$EnIssuePlace&#39;, &#39;$IssueDate&#39;, &#39;$ExpireDate&#39;, &#39;$Nationality&#39;, &#39;$Religion&#39;, &#39;$Occupation&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;ID&#39;,index:&#39;ID&#39;, width:50,editable:false,editoptions:{readonly:true,size:10}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;arName&#39;,index:&#39;arName&#39;, width:155,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;enName&#39;,index:&#39;enName&#39;, width:155,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Sex&#39;,index:&#39;Sex&#39;, width:90, editable: true,edittype:"select",editoptions:{value:"ID:Value;ID:Value"}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;fileNo&#39;,index:&#39;fileNo&#39;, width:100,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;refNo&#39;,index:&#39;refNo&#39;, width:100,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Salary&#39;,index:&#39;Salary&#39;, width:80,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Contract&#39;,index:&#39;Contract&#39;, width:85,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;passportNo&#39;,index:&#39;passportNo&#39;, width:110,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;arIssuePlace&#39;,index:&#39;arIssuePlace&#39;, width:180,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;enIssuePlace&#39;,index:&#39;enIssuePlace&#39;, width:180,editable:true,editoptions:{size:36}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;issueDate&#39;,index:&#39;issueDate&#39;, width:120,editable:true,editoptions:{size:36},sorttype:"date"},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;issueExpiry&#39;,index:&#39;issueExpiry&#39;, width:120,editable:true,editoptions:{size:36},sorttype:"date"},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Nationality&#39;,index:&#39;Nationality&#39;, width:110, editable: true,edittype:"select",editoptions:{value:"ID:Value;ID:Value"}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Religion&#39;,index:&#39;Religion&#39;, width:110, editable: true,edittype:"select",editoptions:{value:"ID:Value;ID:Value"}},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Occupation&#39;,index:&#39;Occupation&#39;, width:110, editable: true,edittype:"select",editoptions:{value:"ID:Value;ID:Value"}}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; rowList:[10,25,50,75,100],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#Bar&#39;),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; imgpath: &#39;$JS/grid/themes/basic/images&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;ID&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; recordtext: "$Rows",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; caption:"$Caption",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; editurl:"?Option=modify",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; multiselect:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; loadui:&#39;block&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; loadtext: "$LoadMsg",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; height:&#39;100%&#39;<br />&#160;&#160;&#160; &#160;&#160;&#160; }).navGrid(&#39;#Bar&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {}, //options<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {height:410,width:400,reloadAfterSubmit:false}, // edit options<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {height:400,reloadAfterSubmit:true}, // add options<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {reloadAfterSubmit:false}, // del options<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {} // search options<br />&#160;&#160;&#160; &#160;&#160;&#160; );<br />&#160;&#160;&#160; });<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; jQuery("#HideID").click( function() {<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#Table").hideCol(["ID"]);<br />&#160;&#160;&#160; });<br />&#160;&#160;&#160; jQuery("#ShowID").click( function() {<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#Table").showCol(["ID"]);<br />&#160;&#160;&#160; });<br />&#60;/script&#62;</p>
<p>&#60;a href="javascript:void(0)" id="HideID"&#62;Hide column ID&#60;/a&#62;&#60;br/&#62;<br />&#60;a href="javascript:void(0)" id="ShowID"&#62;Show column ID&#60;/a&#62;</p>
<p>EOF;<br />.....</p>
</p>
<p>Thanks a lot Tony..<br />Best regards.</p>
]]></description>
        	        	<pubDate>Sun, 27 Jul 2008 11:00:04 +0300</pubDate>
        </item>
</channel>
</rss>