<?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: afterSaveCell</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/aftersavecell</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/aftersavecell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sepoto on afterSaveCell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/aftersavecell#p28733</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/aftersavecell#p28733</guid>
        	        	<description><![CDATA[<p>For some reason I am getting alert2 when I enter the cell to edit but I am not getting alert1 when I press the enter key to save the data to the grid again. Why would my alert inside of afterSaveCell not be coming up when I press the enter key with the cursor inside of the cell to edit?</p>
<p>&#60;!DOCTYPE html&#62;</p>
<p>&#60;html&#62;</p>
<p>&#60;head&#62;</p>
<p>&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;</p>
<p>&#60;title&#62;My First Grid&#60;/title&#62;</p>
</p>
<p>&#60;style type="text/css"&#62;</p>
<p>html, body {</p>
<p>margin: 0;</p>
<p>padding: 0;</p>
<p>font-size: 75%;</p>
<p>}</p>
<p>&#60;/style&#62;</p>
</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="jqueryui/themes/redmond/jquery-ui.css" /&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="jqueryui/themes/redmond/jquery.ui.theme.css" /&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="jqgrid/css/ui.jqgrid.css" /&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="timepicker/jquery-ui-timepicker-addon.css" /&#62;</p>
<p>&#60;link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;fullcalendar/fullcalendar/fullcalendar.css&#39; /&#62;</p>
<p>&#60;link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;fullcalendar/fullcalendar/fullcalendar.print.css&#39; media=&#39;print&#39; /&#62;</p>
</p>
<p>&#60;script src="http://code.jquery.com/jquery-1.9.1.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="http://code.jquery.com/jquery-migrate-1.1.1.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="jqueryui/js/jquery-ui-1.10.1.custom.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="jqgrid/js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script src="jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script type=&#39;text/javascript&#39; src=&#39;fullcalendar/fullcalendar/fullcalendar.min.js&#39;&#62;&#60;/script&#62;</p>
<p>&#60;script type=&#39;text/javascript&#39; src=&#39;timepicker/jquery-ui-sliderAccess.js&#39;&#62;&#60;/script&#62;</p>
<p>&#60;script type=&#39;text/javascript&#39; src=&#39;timepicker/jquery-ui-timepicker-addon.js&#39;&#62;&#60;/script&#62;</p>
</p>
<p>&#60;script type="text/javascript"&#62;</p>
<p>$(function(){</p>
<p>$("#list").jqGrid({</p>
<p>url:&#39;php.scripts/customers.get.php&#39;,</p>
<p>datatype: &#39;xml&#39;,</p>
<p>mtype: &#39;POST&#39;,</p>
<p>colNames:[&#39;idcustomers&#39;,&#39;firstname&#39;, &#39;lastname&#39;,&#39;address1&#39;,&#39;address2&#39;,&#39;city&#39;,&#39;state&#39;,&#39;zip&#39;,&#39;phone&#39;,&#39;email&#39;,&#39;cell&#39;],</p>
<p>colModel :[</p>
<p>{name:&#39;idcustomers&#39;, index:&#39;idcustomers&#39;, width:55},</p>
<p>{name:&#39;firstname&#39;, index:&#39;firstname&#39;, width:90, editable: true},</p>
<p>{name:&#39;lastname&#39;, index:&#39;lastname&#39;, width:90, editable: true},</p>
<p>{name:&#39;address1&#39;, index:&#39;address1&#39;, width:90, editable: true},</p>
<p>{name:&#39;address2&#39;, index:&#39;address2&#39;, width:90, editable: true},</p>
<p>{name:&#39;city&#39;, index:&#39;city&#39;, width:90, editable: true},</p>
<p>{name:&#39;state&#39;, index:&#39;state&#39;, width:90, editable: true},</p>
<p>{name:&#39;zip&#39;, index:&#39;zip&#39;, width:90, editable: true},</p>
<p>{name:&#39;phone&#39;, index:&#39;phone&#39;, width:90, editable: true},</p>
<p>{name:&#39;email&#39;, index:&#39;email&#39;, width:90, editable: true},</p>
<p>{name:&#39;cell&#39;, index:&#39;cell&#39;, width:90, editable: true}</p>
<p>],</p>
<p>pager: &#39;#pager&#39;,</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>sortname: &#39;idcustomers&#39;,</p>
<p>sortorder: &#39;asc&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>caption: &#39;Customers&#39;,</p>
<p>cellEdit: true,</p>
<p>cellsubmit: &#39;clientArray&#39;,</p>
<p>afterSaveCell: function(rowid,name,val,iRow,iCol) {</p>
<p>alert("alert1!");</p>
<p>},</p>
<p>afterEditCell: function (id,name,val,iRow,iCol){</p>
<p>alert("alert2!");</p>
<p>}</p>
<p>});</p>
<p>});</p>
<p>&#60;/script&#62;</p>
</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;table id="list"&#62;&#60;tr&#62;&#60;td/&#62;&#60;/tr&#62;&#60;/table&#62;</p>
<p>&#60;div id="pager"&#62;&#60;/div&#62;</p>
<p>&#60;/body&#62;</p>
<p>&#60;/html&#62;</p>
]]></description>
        	        	<pubDate>Sat, 04 May 2013 04:07:42 +0300</pubDate>
        </item>
</channel>
</rss>