<?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: Problem with multiselect</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-multiselect</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/problem-with-multiselect/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Problem with multiselect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-multiselect#p7367</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-multiselect#p7367</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How do you construct the grid when you destroy and load it agin. Do you use gridImport?</p>
<p>You should not comment anything. Be a sure that you have the right css file and this file is loaded correct.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 21 Jun 2009 05:56:15 +0300</pubDate>
        </item>
        <item>
        	<title>vpatil on Problem with multiselect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-multiselect#p7316</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-multiselect#p7316</guid>
        	        	<description><![CDATA[<p>Hi!,</p>
<p>1. I have set the multiselect =false and yet I can multiselect the rows..</p>
<p>I destroy and create the grid depending on what was button was clicked as I need to display different columns and create differnt toolbar in the grid.</p>
<p>In one of the button the multiselect :false work but on the other two it does not..</p>
<p>2. My second problem is when the page loads it shows the Warning popup with Please select row.. It also disables the whole grid. once I close the popup it is ok, but wehn I destroy it and recreate it, the popup does not show but grid is disabled.. I commented out a in grid.base.js around line no779&#160; $("&#60;div class=&#39;ui-widget-overlay jqgrid-overlay&#39; id=&#39;lui_" + this.id + "&#39;&#62;&#60;/div&#62;").append(ii).insertBefore(gv);</p>
<p>With this commented I do not get the disabling but the warning still shows up.</p>
</p>
<p>Any pointers will be greatly appreciated..</p>
<p>Thanks</p>
<p>My code is as follows:</p>
<p>function setupGrid(cols, colNames, sortnm, NodeId, Type, title) {<br />&#160;&#160;&#160; jQuery("#NodeTable").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160; datatype: function(pdata) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // alert(JSON.stringify(pdata));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery.ajax({ type: "POST",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: "../asmx/MainPg.asmx/GetNodeTableNew1",<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; data: JSON.stringify(pdata),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; contentType: "application/json;charset=utf-8",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; processData: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; error: function(XMLHttpRequest, textStatus, errorThrown)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { ajaxError(XMLHttpRequest, textStatus, errorThrown); },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function(result) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grdData = JSON.parse(result.d);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var thegrid = jQuery("#NodeTable")[0];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; thegrid.addJSONData(grdData);</p>
<p>&#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; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: colNames,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: cols,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager2&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rownumbers: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 25, 50],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: sortnm,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: title,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: "auto",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [true, "top"]<br />&#160;&#160;&#160; });<br />&#160;&#160;&#160; jQuery("#NodeTable").navGrid(&#39;#pager2&#39;, { add: false, edit: false, del: false, search: false, refresh: true });<br />&#160;&#160;&#160; CreateToolBar(NodeId, Type);</p>
<p>}</p>
]]></description>
        	        	<pubDate>Thu, 18 Jun 2009 07:30:27 +0300</pubDate>
        </item>
</channel>
</rss>