<?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: newbie in jqGrid, how add event handler on cell data?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/newbie-in-jqgrid-how-add-event-handler-on-cell-data</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/newbie-in-jqgrid-how-add-event-handler-on-cell-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on newbie in jqGrid, how add event handler on cell data?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/newbie-in-jqgrid-how-add-event-handler-on-cell-data#p16407</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/newbie-in-jqgrid-how-add-event-handler-on-cell-data#p16407</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Welcome.</p>
<p>This is a most common problem. Let me explain.</p>
<p>You bind a click event to element that has a class box, but to work this the element should be present into the DOM.</p>
<p>When we construct a grid - first you bind the click to such element, but these elements are not inserted into the dom snce of the ajax request.</p>
<p>You have a lot of solutions.</p>
<p>1. You can use the jQuery live method. More you can find in the jQuery site.</p>
<p>2. You can use the gridComplete event to bind the click event to such elements.</p>
<p>3. You can use afterInsertRow event ( I do not recommend this) to do the same.</p>
<p>More You can find here:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....iki:events</a></p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 14 Apr 2010 20:17:13 +0300</pubDate>
        </item>
        <item>
        	<title>tomikb on newbie in jqGrid, how add event handler on cell data?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/newbie-in-jqgrid-how-add-event-handler-on-cell-data#p16358</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/newbie-in-jqgrid-how-add-event-handler-on-cell-data#p16358</guid>
        	        	<description><![CDATA[<p>Hi, sorry for my english. It is not my native language.</p>
<p>Please, help me, how i can jQuery add event handler in cell data.</p>
<p>By example:</p>
<p>on the page with jqgrid is defined event:</p>
</p>
<pre>$(&#39;.box&#39;).click(function() {
alert(&#39;box view&#39;);<br />});<br /><br /></pre>
<p>on</p>
<pre>&#60;a class="box" href="#"&#62;test&#60;/a&#62;</pre>
<p>on a page event working properly, but in XML cell data in jQuery</p>
<pre>&#60;cell&#62;&#60;![CDATA[&#60;a href="#" class="box" id="5"&#62;...</pre>
<p>event not working and click on &#60;a&#62; link in grid not show alert message.</p>
<p>Why?</p>
<p>Thank you for your tips.</p>
]]></description>
        	        	<pubDate>Mon, 12 Apr 2010 12:32:50 +0300</pubDate>
        </item>
</channel>
</rss>