<?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: How to update Column Value(Image path) on onCellSelect</title>
	<link>http://www.trirand.com/blog/?page_id=393/jqgrid-roadmap/how-to-update-column-valueimage-path-on-oncellselect</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/jqgrid-roadmap/how-to-update-column-valueimage-path-on-oncellselect/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>swathi on How to update Column Value(Image path) on onCellSelect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/jqgrid-roadmap/how-to-update-column-valueimage-path-on-oncellselect#p31433</link>
        	<category>jqGrid Roadmap</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/jqgrid-roadmap/how-to-update-column-valueimage-path-on-oncellselect#p31433</guid>
        	        	<description><![CDATA[<p>Hello..</p>
<p>Â please view the code below.</p>
<p>Â  Â  Â Â </p>
<p>$('#table1').jqGrid({</p>
<p>url: 'XMLFile1.xml',<br />
 datatype: "xml",<br />
 height: 'auto',<br />
 colModel: [<br />
 { name: 'Title', width: 80, xmlmap: "CATALOG&#62;CD&#62;TITLE"<br />
 },<br />
 { name: 'Artist', width: 90, xmlmap: "CATALOG&#62;CD&#62;ARTIST"<br />
 },<br />
 { name: 'Image', width: 55,editable: true,<br />
 formatter: function () {<br />
 return "&#60;img src='css/images/resize.jpg' /&#62;";<br />
 }<br />
 },<br />
 ],<br />
 xmlReader: {<br />
 root: "CATALOG",<br />
 row: "CD",<br />
 repeatitems: false<br />
 },</p>
<p>onCellSelect: function (rowid, icol, cellcontent, e) {</p>
<p>Â var rowData = $(this).jqGrid('getRowData', rowid);<br />
rowData.Image = "&#60;img src='css/images/SQl Express 2008.png' /&#62;";<br />
 $(this).jqGrid('setRowData', rowid, rowData);<br />
 },<br />
 loadonce: true,<br />
 rowNum: 10<br />
 });</p>
<p>Â </p>
<p>if you can observer the above code, there are three columns in my grid. The first two columns are populated with the data coming from xml file. and the third column is Image column with static image path. Now, i want to change the image when user clicks on that cell. the above code what i've tried is not working. can you please tell me how to do this.</p>
<p>using: vs2010</p>
<p>Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â Thank you.</p>
]]></description>
        	        	<pubDate>Mon, 08 Dec 2014 14:39:47 +0200</pubDate>
        </item>
</channel>
</rss>