<?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: Show/hide grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1</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/showhide-grid-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>YamilBracho on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2630</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2630</guid>
        	        	<description><![CDATA[<p>I see your point, Tony</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Tue, 21 Oct 2008 09:28:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2624</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2624</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is a little dificult to do that since we create a lot of elements. I think that giving this freedom (like used from you) is better approach, rather than to put additinal code.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 21 Oct 2008 01:15:03 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2616</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2616</guid>
        	        	<description><![CDATA[<p>I already did it! The process is as follows:</p>
<p>1) Enclosed your grid in a div and hides this div using style="display:none"</p>
<p>2) In the button or image you click to see if the grid could be visible just</p>
<p>&#160;jQuery("#dataDiv").show();&#160;</p>
<p>I think it could be a good idea add a visible property to the grid to show/hide it programatically...</p></p>
]]></description>
        	        	<pubDate>Mon, 20 Oct 2008 13:55:11 +0300</pubDate>
        </item>
        <item>
        	<title>Seken on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2612</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2612</guid>
        	        	<description><![CDATA[<div id="result_box" dir="ltr">I will try and post here. </p>
<p> Thank you very much</p>
</div>
]]></description>
        	        	<pubDate>Mon, 20 Oct 2008 09:40:14 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2611</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2611</guid>
        	        	<description><![CDATA[<p>Note than i am uisng a flag to hide/show the grid but when I click in the "imgOK" the grid "flashes" and dissapears as the "ghideGrid" variable is created again...</p>
<p>&#160;var ghideGrid = 1;<br />&#160;<br />&#160; jQuery("#imgOK").click(function() { &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var fechaDesdeString = jQuery("#txtFechaDesde").val();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var fechaHastaString = jQuery("#txtFechaHasta").val();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (fechaDesdeString == &#39;&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Debe especificar la fecha Desde");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (fechaHastaString == &#39;&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Debe especificar la fecha Hasta");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Realiza validaciones<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var dFechaDesde = Date.parse(fechaDesdeString);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var dFechaHasta = Date.parse(fechaHastaString);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (dFechaHasta &#60; dFechaDesde) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("La fecha Hasta no puede ser menor que la fecha Desde");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; jQuery("#dataDiv").show(); &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").setPostData( { oper: "gm"} ); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").appendPostData( { desde: fechaDesdeString, hasta:fechaHastaString }); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").trigger("reloadGrid");<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var ghideGrid = 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return&#160; true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Empresas&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Codigo&#39;,&#39;Nombre&#39;, &#39;Sector&#39;, &#39;Status&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel :[ { name: "co_empresa",&#160;&#160;&#160;&#160;&#160;&#160; index: "co_empresa",&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 20, editable: false, sortable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "nb_razon_social",&#160; index: "nb_razon_social",&#160;&#160; width: 60, editable: false, sortable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "nb_sector",&#160;&#160;&#160;&#160;&#160;&#160;&#160; index: "nb_sector",&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 90, editable: false, sortable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "st_empresa",&#160;&#160;&#160;&#160;&#160;&#160; index: "st_empresa",&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 20, editable: false, sortable: false } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //colNames:[&#39;Codigo&#39;,&#39;Nombre&#39;, &#39;Status&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //colModel :[ { name: "co_empresa",&#160;&#160;&#160;&#160;&#160;&#160; index: "co_empresa",&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 20, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "nb_razon_social",&#160; index: "nb_razon_social",&#160;&#160; width: 60, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "st_empresa",&#160;&#160;&#160;&#160;&#160;&#160; index: "st_empresa",&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 20, editable: false } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //],<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; editurl: urlString,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: "47%", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: "&#60;%=Constantes.JQUERY_GRID_IMG_PATH%&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems : true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: "co_empresa"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadtext: "&#60;%=Constantes.JQUERY_GRID_LOADTEXT%&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: "&#60;%=Constantes.JQUERY_GRID_LOAD_UI%&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: "&#60;%=Constantes.JQUERY_GRID_MTYPE%&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; recordtext: "&#60;%=Constantes.JQUERY_GRID_RECORDTEXT%&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: "nb_razon_social",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "&#60;%=Constantes.JQUERY_GRID_SORT_ORDER%&#62;",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [true, "bottom"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: urlString,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width : 1000,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete:function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (ghideGrid == 1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("hideGrid=" + ghideGrid);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#dataDiv").hide(); &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ghideGrid = 0;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).navGrid("#pager", { refresh: false, edit: false, add: false, del: false, search: false }); <br />});</p>
<p>&#60;div id="dataDiv"&#62; &#160;<br />&#160;&#160;&#160; &#60;table id="dataTable"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;tr&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;td&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id="list" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/table&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id="pager" class="scroll" style="text-align:center;"&#62;&#60;/div&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/td&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/tr&#62;<br />&#160;&#160;&#160; &#60;/table&#62;<br />&#60;/div&#62;</p>
]]></description>
        	        	<pubDate>Mon, 20 Oct 2008 09:25:34 +0300</pubDate>
        </item>
        <item>
        	<title>Seken on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2609</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2609</guid>
        	        	<description><![CDATA[<p>Hi people,</p>
<p>I&#39;m having a doubt in Jgrid and need help.</p>
<p>I need that my column "id" stay hidden in the grid and in my form<br />it appears, not knowing I am doing this, anyone have any idea.</p>
</p>
<p>Thanks,</p>
<p>Seken</p>
]]></description>
        	        	<pubDate>Mon, 20 Oct 2008 08:48:49 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2594</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2594</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How do you do that?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 19 Oct 2008 07:47:18 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2583</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2583</guid>
        	        	<description><![CDATA[<p>Is there a method to hide/show a grid ? What I want to do is show the grid only if data is found and if not data found show a message..</p>
<p>I enclosed the grid in a div and gives this div a hidden style but when i wnt to show it the grid "flashes" and did not be shown...</p>
</p>
<p>TIA</p>
]]></description>
        	        	<pubDate>Fri, 17 Oct 2008 15:43:39 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2575</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2575</guid>
        	        	<description><![CDATA[<p>Tony, I add all the columns and now it is working.</p>
<p>In the meantime I think i discover a bug. When you have a selected/unselected grid, select one row and sort for any column then you lose the selected row...</p>
]]></description>
        	        	<pubDate>Fri, 17 Oct 2008 11:23:34 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2574</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2574</guid>
        	        	<description><![CDATA[<p>Thanks Tony.</p>
<p>I already use this data in another place in my app and it is shown OK.</p>
<p>The only difference is in this part I just want to select/unselect rows, no CRUD is needed and I do not need to show all the fields that I have in json data...</p>
]]></description>
        	        	<pubDate>Fri, 17 Oct 2008 10:42:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2566</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2566</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Check your data returned from server. You have some inconsistency</p>
<p>between colModel and the number of returned rows.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 17 Oct 2008 09:01:13 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on Show/hide grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2556</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showhide-grid-1#p2556</guid>
        	        	<description><![CDATA[<p>Hi.</p>
<p>I would like to show/hide a grid after the user sets two textfield in my form. Typically tow input that represent dates and when i click a button, if there is data found show it in the grid, otherwise hide the grid.</p>
<p>In my document.ready function I specify&#160; hidegrid: false and hiddengrid:true, because I want the first time the grid don&#39;t be shown.</p>
<p>However I amg getting this error</p>
<p>Message: &#39;ts.p.colModel[...].align&#39; is null or not an object</p>
<p>TIA</p>
]]></description>
        	        	<pubDate>Thu, 16 Oct 2008 15:00:11 +0300</pubDate>
        </item>
</channel>
</rss>