<?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: Mutiselect problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem</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/mutiselect-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sanchitos on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10530</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10530</guid>
        	        	<description><![CDATA[<p>Mark thank you very much! The thing was that i had version 3.4 on my server, I upgraded to 3.5 and the option</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6373' value='Select Code' data-codeid='sfcode6373' /></p>
<div class='sfcode' id='sfcode6373'>jQuery(NOMBRE_GRID).setGridParam({ multiboxonly: true }).hideCol(&#39;cb&#39;);</div>
</p>
<p>is actually working.</p>
</p>
<p>Thank you again 😉</p>
</p>
<p>Topic closed!!! jeje</p>
</p>
<p>PS. Sorry for all the inconvenient</p>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 16:41:55 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10529</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10529</guid>
        	        	<description><![CDATA[<blockquote>
<p>I did read what mark said, multiboxonly seems to be the right path to give the effect but when I click a row it don&#39;t seems to be selected (it&#39;s kind of obvious because you need to click the check-box in order to select the row), so when i try to retrieve the selected row, there won&#39;t be any selected row. I tried this before got here in the forum.</p>
</blockquote>
<p>It may seem obvious - but its not correct... with multiboxonly set to true, you have to click on the check box to get multiselect behavior; but clicking elsewhere on the row gives you uniselect behavior (I&#39;ve just tested this - it works perfectly).</p>
</p>
<blockquote>
<p>What I really want to know is why the information is moved one cell to the left? Like in the picture in the first post. Why is this happening when i do jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;) in jQuery(document).ready ?</p>
</blockquote>
<p>Because changing the multiselect option after creating the grid is not supported.</p>
</p>
<blockquote>
<p>I don&#39;t know if i need to clarify again. I wrote down an event when a button is clicked on the page and i set this instruction</p>
<p>jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;)</p>
<p>and is perfectly working.</p>
</blockquote>
<p>No, it isnt. Try refreshing the grid to see that.</p>
</p>
<p>Why does it /appear/ to work when you use a button, and not when you use $(document).ready? Well, its because in the latter case, the data comes back from the server /after/ you change the multiselect flag - and any time the grid fetches data from the server when the multiselect flag has been changed, things are going to go wrong. But as I said above, if you cause the data to be refreshed it will fail in both cases...</p>
</p>
<p>But here&#39;s a question - since you create your grid in a $(document).ready handler, and you change the setting in a $(document).ready handler, why not just create it with the correct setting anyway?</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 15:49:24 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10527</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10527</guid>
        	        	<description><![CDATA[<p>Tony thank for your reply, i really appreciate you guys on trying to help me.</p>
</p>
<p>I did read what mark said, multiboxonly seems to be the right path to give the effect but when I click a row it don&#39;t seems to be selected (it&#39;s kind of obvious because you need to click the check-box in order to select the row), so when i try to retrieve the selected row, there won&#39;t be any selected row. I tried this before got here in the forum.</p>
</p>
<p>What I really want to know is why the information is moved one cell to the left? Like in the picture in the first post. Why is this happening when i do  jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;) in jQuery(document).ready ?</p>
</p>
<p>I don&#39;t know if i need to clarify again. I wrote down an event when a button is clicked on the page and i set this instruction</p>
<p>jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;)</p>
<p>and is perfectly working.</p>
</p>
<p>Code:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; function Acciones(accion) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; switch (accion.id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; case &#8220;linkAceptar&#8221;:<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; case &#8220;btnAceptar&#8221;:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>Picture:</p>
<p><a href="http://www.revolucion7.com/wp-content/uploads/2009/10/error2-300x138.jpg"><img src="http://www.revolucion7.com/wp-content/uploads/2009/10/error2-300x138.jpg" width="100"  class="sfimageleft spUserImage" alt="Working" /><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>Why is this happening, why on the jQuery(document).ready move the information one cell to the left, and why on a javascript event is working fine?</p>
</p>
<p>For me i think it&#39;s a bug and it seems like an index in some of the jqgrid code is missing on the way when calling jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;); on  jQuery(document).ready.</p>
</p>
<p>Thank you again</p>
</p>
<p>PS. Sorry if i&#39;m being kind of annoying or if i don&#39;t express my self well. (Greetings from Costa Rica)</p></p>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 13:48:32 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10501</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10501</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think you do not read carefully what Mark write.</p>
<p>1. You should set in grid configuration multiselect true and do not change this parameter anymore.</p>
<p>2. You should operate on muliboxonly parameter as of the code above.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 04:04:02 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10484</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10484</guid>
        	        	<description><![CDATA[<p>Thank you mark I thought same too about the multibox only and i tested. It seems to work fine until i tried to retrieve the information of the row selected: no row was selected 😛</p>
</p>
<p>Well i&#39;m giving up, jeje, thank you all guys, really.</p>
</p>
<p>But i really think it&#39;s a jqgrid bug, i don&#39;t understand why the information is moved one cell to the left.</p>
</p>
<p>Thank you again!</p>
</p>
<p>PS. This is the code when the information is moved to the left:.</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/BuscadorEmpleado/BuscarEmpleado&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: "POST",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: true,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //width: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: "enable",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [false, "top"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;, &#39;Cedula&#39;, &#39;Nombre&#39;, &#39;Primer Apellido&#39;, &#39;Segundo Apellido&#39;],<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;id_empleado&#39;, index: &#39;id_empleado&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;cedula&#39;, index: &#39;cedula&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;nombre&#39;, index: &#39;nombre&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;primer_apellido&#39;, index: &#39;primer_apellido&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;segundo_apellido&#39;, index: &#39;segundo_apellido&#39;, width: 100, align: &#39;left&#39; }<br />&#160;&#160;&#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; rowNum: tamanoPagina,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [5, 10, 15, 20],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(NOMBRE_AREA_PAGINACION),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;nombre&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; imgpath: &#39;/scripts/themes/basic/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(NOMBRE_AREA_PAGINACION),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var multiselect = jQuery("#EmpleadosMultiSeleccion").val();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (multiselect == UNISELECCION) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).hideCol(&#39;id_empleado&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p>Again if multiselect = false, everythings works fine 😀</p>
</p>
<p>See ya!</p></p>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 17:10:06 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10482</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10482</guid>
        	        	<description><![CDATA[<p>You cant change the multiselect option after creating the grid (well, you could, but you would have to update lots of other internal grid state).</p>
</p>
<p>But note that setting multiboxonly results in uni-select behavior except when clicking on the checkbox.</p>
</p>
<p>So if you set that, and hide the checkboxes, you should get what you want:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9279' value='Select Code' data-codeid='sfcode9279' /></p>
<div class='sfcode' id='sfcode9279'>jQuery(NOMBRE_GRID).setGridParam({ multiboxonly: true }).hideCol(&#39;cb&#39;);</div>
</p>
<p>Its also possible to set an onBeforeSelect handler, which effectively gives you complete control over how clicking on rows affects the selection (I dont think you need to do this - but if you ever need more control than the standard options give you, thats the way to do it).</p>
</p>
<p>Mark</p></p>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 15:25:20 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10478</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10478</guid>
        	        	<description><![CDATA[<p>Updated to JqGrid 3.5 and same thing is happening. Problem is not solved :(, information is moved one cell to the left.</p>
</p>
<p>Does anyone have you tried transform a multiselect grid to uniselect grid in loading phase?</p>
</p>
<p>Thank you, any comment will be appreciated .</p>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 12:44:40 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10449</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10449</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Nothing wrong, but you can do this only in 3.5 version:</p>
<p>See this here</p>
<p><a href="http://www.trirand.com/blog/?p=362&#038;cpage=5#comment-3231" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....mment-3231</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 06:26:40 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Mutiselect problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10416</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/mutiselect-problem#p10416</guid>
        	        	<description><![CDATA[<p>Hi!, JqGrid is amazing, really.</p>
<p>Here&#39;s my problem.</p>
<p>I need to have a grid that may be multiselect or uniselect grid dinamically set up when the page is loading (it might be multiselect by a variable set by the user in a previous page)</p>
<p>I&#39;m doing this.</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/BuscadorEmpleado/BuscarEmpleado&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: "POST",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //width: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: "enable",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [false, "top"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;, &#39;Cedula&#39;, &#39;Nombre&#39;, &#39;Primer Apellido&#39;, &#39;Segundo Apellido&#39;],<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;id_empleado&#39;, index: &#39;id_empleado&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;cedula&#39;, index: &#39;cedula&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;nombre&#39;, index: &#39;nombre&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;primer_apellido&#39;, index: &#39;primer_apellido&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;segundo_apellido&#39;, index: &#39;segundo_apellido&#39;, width: 100, align: &#39;left&#39; }<br />&#160;&#160;&#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; rowNum: tamanoPagina,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [5, 10, 15, 20],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(NOMBRE_AREA_PAGINACION),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;nombre&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; imgpath: &#39;/scripts/themes/basic/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(NOMBRE_AREA_PAGINACION),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).hideCol(&#39;id_empleado&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p>&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var multiselect = jQuery("#EmpleadosMultiSeleccion").val();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (multiselect == UNISELECCION) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;);&#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; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p>Now when uniseleccion value = false there&#39;s no problem, but when uniseleccion is true... the combo box is hidden, but all the information is moved one cell to the left</p>
<p><a href="http://www.revolucion7.com/wp-content/uploads/2009/10/jqgride.JPG"><img src="http://www.revolucion7.com/wp-content/uploads/2009/10/jqgride.JPG" width="100"  class="sfimageleft spUserImage" alt="Error" /><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>Now i did another test I set&#160; UNISELECCION = false, then there&#39;s a multiselect grid loaded fine, then i dinamically with a button do this:</p>
<p>jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol(&#39;cb&#39;);</p>
<p>And the grid is fine, the the information is not moved one cell to the left. So i&#39;m thinking the problem is when i set the grid without multiselect in jQuery(document).ready(function()).</p>
</p>
<p>My question is, what might be wrong, or if it&#39;s a jqgrid bug.</p></p>
]]></description>
        	        	<pubDate>Mon, 05 Oct 2009 11:01:46 +0300</pubDate>
        </item>
</channel>
</rss>