<?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: Jqgrid not updating a column with Set Row Data Method</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-updating-a-column-with-set-row-data-method</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/jqgrid-not-updating-a-column-with-set-row-data-method/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>DGS on Jqgrid not updating a column with Set Row Data Method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-updating-a-column-with-set-row-data-method#p30885</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-updating-a-column-with-set-row-data-method#p30885</guid>
        	        	<description><![CDATA[<p>I have a Jqgrid with a Checkbox given in the header Section.</p>
<p>colNames: ['', '', '&#60;input type="checkbox" id="chkmultiSelect" onclick="abc(event)"/&#62;'],</p>
<p>colModel: [</p>
<p>{ name: 'ID', index: 'ID', hidden: true, key: true },<br />
 { name: 'RI', index: 'RI', hidden: true },<br />
 { name: 'Sel', index: 'Sel', edittype: "checkbox", search: false, width: 22,<br />
 formatter: function(cellvalue, options, rowObject) {<br />
 switch (cellvalue) {<br />
 case "Yes": return "&#60;img src='../../Images/ChkChk.gif' alt='Yes' onclick='checkGridRow(" + options.rowId + ")' /&#62;";<br />
 break;<br />
 default: return "&#60;img src='../../Images/ChkBlank.gif' alt='No' onclick='checkGridRow(" + options.rowId + ")' /&#62;";<br />
 break;<br />
 }<br />
 }, unformat: imageUnFormat<br />
 }]</p>
<p>----------------------</p>
<p>This is the scenario</p>
<p>Initally when Page Loading all the columns will be coming with out check box. When i clicked the chkmultiselect i want to mark checked in my columns. ie Update with another tag Â "&#60;img src='../../Images/ChkChk.gif' alt='Yes' onclick='checkGridRow(" + options.rowId + ")' /&#62;"</p>
<p>Â </p>
<p>My abc Event: I want to update my "Sel" column with chkchk image.</p>
<p>function abc(e) {<br />
 e = e &#124;&#124; event; /* get IE event ( not passed ) */<br />
 e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true;<br />
 var mydata = $("#list").jqGrid('getGridParam', 'data');<br />
 var gridId = jQuery("#list").getDataIDs();<br />
 //loop through grid rows<br />
 for (var countRow = 1; countRow &#60;= gridId.length; countRow++) {<br />
 var rowId = gridId[countRow];<br />
 var beChecked = "&#60;img src='../../Images/ChkChk.gif' alt='Yes' onclick='checkGridRow(" + rowId + ")' /&#62;";<br />
 var inputControl = beChecked;<br />
 jQuery("#list").jqGrid('setRowData', rowId, {Sel: "&#60;img src='../../Images/ChkChk.gif' alt='Yes' onclick='checkGridRow(" + rowId + ")' /&#62;" });<br />
 }<br />
 if ($('#chkmultiSelect').is(':checked')) {<br />
 $('#chkmultiSelect').prop('checked', true);<br />
 }<br />
 else {<br />
 $('#chkmultiSelect').prop('checked', false);<br />
 }<br />
 }</p>
<p>Â </p>
<p>I am getting my chkmultiselect functioning correctly. but the grid column sel is not updating.</p>
<p>This is very urgent for me.. Any guesses why?</p>
<p>Â </p>
<p>ThanksDGS</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2014 04:03:45 +0300</pubDate>
        </item>
</channel>
</rss>