<?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: onSelectAll checkbox issue</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/onselectall-checkbox-issue</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/onselectall-checkbox-issue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>thaneshkadi on onSelectAll checkbox issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/onselectall-checkbox-issue#p26865</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/onselectall-checkbox-issue#p26865</guid>
        	        	<description><![CDATA[<p>&#160;i think it is due to the browser glitch. Today morning i tried it and every thing looks good. No issues</p>
]]></description>
        	        	<pubDate>Wed, 27 Jun 2012 21:52:01 +0300</pubDate>
        </item>
        <item>
        	<title>thaneshkadi on onSelectAll checkbox issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/onselectall-checkbox-issue#p26856</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/onselectall-checkbox-issue#p26856</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>Need some help please</p>
</p>
<p>I am using a multiselect jqgrid with onSelectRow, onSelectAll and gridComplete event. My issue is when i check selectall check box which is selecting all the rows in the grid view but as soon as the gridComplete is called selectall check box is getting unchecked and i am not able to unselect all the rows.</p>
</p>
<p>Please let me know if some thing i need to take care here. below is my code</p>
</p>
<p>$("#"+tableID).jqGrid({</p>
<p>datastr: wellboresData,</p>
<p>datatype:"jsonstring",</p>
<p>colNames:[&#39;id&#39;,&#39;Well Legal Name&#39;,&#39;Wellbore Legal Name&#39;, &#39;Region&#39;, &#39;Country&#39;,&#39;State&#39;,&#39;Kick-off Latitude&#39;,&#39;Kick-off Longitude&#39;,&#39;Bottom Hole Latitude&#39;,&#39;Bottom Hole Longitude&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;id&#39;, width:100,hidden: true, align:"left", key:true},</p>
<p>{name:&#39;wellLegalName&#39;, width:"15%", align:"left"},</p>
<p>{name:&#39;wellboreLegalName&#39;, width:"10%", align:"left"},</p>
<p>{name:&#39;region&#39;, width:"15%", align:"left",sortable:true, jsonmap: "location.region"},</p>
<p>{name:&#39;country&#39;, width:"15%", align:"left",sortable:true, jsonmap: "location.country"},</p>
<p>{name:&#39;state&#39;, width:"10%", align:"left",sortable:true, jsonmap: "location.state"},</p>
<p>{name:&#39;kolat&#39;, width:"10%", align:"right",sortable:true, sorttype:"float", jsonmap: "location.koCoord.latitude"},</p>
<p>{name:&#39;kolong&#39;, width:"10%", align:"right",sortable:true, sorttype:"float", jsonmap: "location.koCoord.longitude"},</p>
<p>{name:&#39;bhlat&#39;, width:"10%", align:"right",sortable:true, sorttype:"float", jsonmap: "location.bhCoord.latitude"},</p>
<p>{name:&#39;bhlong&#39;, width:"10%", align:"right",sortable:true, sorttype:"float", jsonmap: "location.bhCoord.longitude"}</p>
<p>],</p>
<p>rowNum:20,</p>
<p>rowList:[5,10,20,50,100,200,500],</p>
<p>pager: &#39;#&#39;+pagerID,</p>
<p>sortname: &#39;id&#39;,</p>
<p>sortorder: "desc",</p>
<p>multiselect: true,</p>
<p>caption: "Wellbore List",</p>
<p>width:width,</p>
<p>height:"100%",</p>
<p>shrinkToFit:true,</p>
<p>jsonReader:{</p>
<p>repeatitems:false,</p>
<p>id:"Id",</p>
<p>root: function(wellboresData){return wellboresData;},</p>
<p>page: function(wellboresData){return 1;},</p>
<p>total: function(wellboresData){return 1;},</p>
<p>records: function(wellboresData){return wellboresData.length;}</p>
<p>},</p>
<p>onSelectRow: function(rowid,status){</p>
<p>if(status){</p>
<p>if (gridwellboreContext != null) {</p>
<p>if($.inArray(rowid,gridwellboreContext) === -1){</p>
<p>gridwellboreContext.push(rowid);</p>
<p>}</p>
<p>} else{</p>
<p>gridwellboreContext.push(rowid);</p>
<p>}</p>
<p>}else{</p>
<p>if($.inArray(rowid,gridwellboreContext) &#62; -1){</p>
<p>gridwellboreContext.splice($.inArray(rowid,gridwellboreContext),1);</p>
<p>}</p>
<p>}</p>
<p>$("#"+tableID).data("modified", true);</p>
<p>},</p>
<p>onSelectAll: function(aRowids,status){</p>
<p>if(status){</p>
<p>for(var i=0; i&#60;aRowids.length; i++){</p>
<p>if (gridwellboreContext != null) {</p>
<p>if($.inArray(aRowids[i],gridwellboreContext) === -1){</p>
<p>gridwellboreContext.push(aRowids[i]);</p>
<p>}</p>
<p>} else{</p>
<p>gridwellboreContext.push(aRowids[i]);</p>
<p>}</p>
<p>}</p>
<p>}else{</p>
<p>for(var i=0; i&#60;aRowids.length; i++){</p>
<p>if($.inArray(aRowids[i],gridwellboreContext) &#62; -1){</p>
<p>gridwellboreContext.splice($.inArray(aRowids[i],gridwellboreContext),1);</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>$("#"+tableID).data("modified", true);</p>
<p>},</p>
<p>gridComplete: function(){</p>
<p>if (gridwellboreContext != null) {</p>
<p>$.each(gridwellboreContext, function (e, wellboreId) {</p>
<p>$("#"+tableID).jqGrid(&#39;setSelection&#39;,wellboreId);</p>
<p>});</p>
<p>}</p>
<p>}</p>
</p>
<p>});</p>
<p>$("#"+tableID).jqGrid(&#39;navGrid&#39;,&#39;#&#39;+pagerID,</p>
<p>{edit:false,add:false,del:false},</p>
<p>{},</p>
<p>{},</p>
<p>{},</p>
<p>{multipleSearch:true, multipleGroup:true}</p>
<p>);</p></p>
]]></description>
        	        	<pubDate>Wed, 27 Jun 2012 01:58:18 +0300</pubDate>
        </item>
</channel>
</rss>