<?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: ImageButtons with jquery callback</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/imagebuttons-with-jquery-callback</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/imagebuttons-with-jquery-callback/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Raif on ImageButtons with jquery callback</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/imagebuttons-with-jquery-callback#p9241</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/imagebuttons-with-jquery-callback#p9241</guid>
        	        	<description><![CDATA[<p>Hi, I used to have a custom format function in jqgrid 3.4.&#160; The function recieved the element ( the table cell ) that contained the cell value.&#160; I was able to manipulate the image path and so on.&#160; I can still get a image button with a href etc but because I no longer get the actual cell I can&#39;t attatch any jquery behavior to it. &#160;</p>
<p>so for a starter I want this</p>
<p>if (opts.colModel.name.toLowerCase().search("delete") &#62;= 0){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(cellval).click(function() { return confirm("Are you sure you would like to delete this Item?"); });</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $.get(href, function(data) { theGrid.trigger("reloadGrid"); });</p>
<p>}</p>
<p>if this is a delete imagebutton then confirm the delete.</p>
<p>if they confirm then do an ajax update an dthen reload the grid.</p>
<p>this was pretty smooth in 3.4 and now I can&#39;t figure out how to achive it short of going in and hacking up the jqgrid source which I&#39;d rather not.</p>
<p>Any help would be greatly appreciated,</p>
<p>Raif</p>
<p><a href="mailto:reaharik@gmail.com" target="_blank">reaharik@gmail.com</a></p>
]]></description>
        	        	<pubDate>Wed, 02 Sep 2009 18:41:45 +0300</pubDate>
        </item>
</channel>
</rss>