<?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: checkOnUpdate not letting me traverse records</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/checkonupdate-not-letting-me-traverse-records</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/checkonupdate-not-letting-me-traverse-records/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on checkOnUpdate not letting me traverse records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/checkonupdate-not-letting-me-traverse-records#p16829</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/checkonupdate-not-letting-me-traverse-records#p16829</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks</p>
<p>This is a bug and it is fixed in GitHub</p>
<p><a href="http://github.com/tonytomov/jqGrid/commit/1aa48a2bbba7db26caa278037fe42907f02284f6" rel="nofollow" target="_blank"><a href="http://github.com/tonytomov/jq" rel="nofollow">http://github.com/tonytomov/jq</a>.....07f02284f6</a></p>
<p>Also will be availabe in the next bugfix release which is supposed to be on May 5, 2010</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 01 May 2010 14:20:09 +0300</pubDate>
        </item>
        <item>
        	<title>ember on checkOnUpdate not letting me traverse records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/checkonupdate-not-letting-me-traverse-records#p16824</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/checkonupdate-not-letting-me-traverse-records#p16824</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Well, I still have not found the solution to the checkOnUpdate problem.&#160; However, I did find out how to select the first row of my grid so that my users can use the edit/add/delete buttons without having to remember to click the row.&#160;</p>
<p>Here&#39;s the function:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8962' value='Select Code' data-codeid='sfcode8962' /></p>
<div class='sfcode' id='sfcode8962'>function selectFirstRow(gridID) {<br />&#160;&#160; &#160;var idsArray = jQuery(gridID).jqGrid(&#39;getDataIDs&#39;);<br />&#160;&#160; &#160;if (idsArray.length &#62; 0) {<br />&#160;&#160; &#160;&#160;&#160; &#160;jQuery(gridID).jqGrid(&#39;setSelection&#39;, idsArray[0], false);<br />&#160;&#160; &#160;}<br />}</div>
<p>I just added a call to it in gridComplete:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2878' value='Select Code' data-codeid='sfcode2878' /></p>
<div class='sfcode' id='sfcode2878'>jQuery(document).ready(<br />function(){<br />&#160;&#160; &#160;jQuery(&#34;#theGridID&#34;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;...,<br />&#160;&#160; &#160;&#160;&#160; &#160;gridComplete: function(){<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; selectFirstRow(&#34;#theGridID&#34;);<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; &#160;...<br />&#160;&#160; &#160;});<br />});</div>
<p>Hope this helps someone else.&#160; If anyone has any hints about onCheckUpdate, I could still use them.</p>
<p>Thanks,</p>
<p>Ember</p>
]]></description>
        	        	<pubDate>Fri, 30 Apr 2010 18:21:14 +0300</pubDate>
        </item>
        <item>
        	<title>ember on checkOnUpdate not letting me traverse records</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/checkonupdate-not-letting-me-traverse-records#p16727</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/checkonupdate-not-letting-me-traverse-records#p16727</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m really enjoying working with jqGrid and it definitely has some of the better documentation, but I&#39;m still running into a few things I can&#39;t figure out.</p>
<p>I would like to be able to navigate through the records using the form to edit the rows.&#160; I found the option to checkOnUpdate and it does something, but it doesn&#39;t work as expected.&#160; Even if I don&#39;t change anything, it tells me "Data has been changed! Save changes?"&#160; I can say yes, but it still won&#39;t let me move to another row.&#160; If I choose Cancel, it closes the form.&#160; Choosing No returns me to the form I was on.&#160; I would expect No to let me move to the next row and cancel to return me the form.&#160; I wouldn&#39;t expect this cancel to close my form.&#160; (Is there some way I can change this behavior or just change the words so I can explain what will happen to my users?&#160; (I&#39;ll probably change no to "return to form" and cancel to "close form".))</p>
<p>But, more importantly, how can I use the checkOnUpdate and move through all of the records.&#160; I cleared out all of my custom formatters in case they were causing the issue, but it still doesn&#39;t work.&#160; I also removed the select type in case defaulting that value was causing the issue, but I still have the same problem.&#160; What am I missing?&#160; Or is this a bug?&#160;</p>
<p style="padding-left: 30px;">
<p><input type='button' class='sfcodeselect' name='sfselectit275' value='Select Code' data-codeid='sfcode275' /></p>
<div class='sfcode' id='sfcode275'>jQuery(document).ready(<br />&#160;&#160; &#160;function(){ <br />&#160;&#160; &#160;&#160; jQuery(&#34;#eventlist&#34;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;example.cfc?Method=getEventLines&#38;invoiceid=29&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;editurl: &#39;example.cfc?Method=saveEventLine&#38;invoiceid=29&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;EventLineID&#39;,&#39;Event ID&#39;, &#39;Facility&#39;, &#39;Date&#39;, &#39;Start Time&#39;, &#39;End Time&#39;, &#39;Cost&#39;, &#39;Per&#39;, &#39;Hours&#39;, &#39;Discount&#39;, &#39;Total&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;colModel :[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;eventlineid&#39;, index:&#39;eventlineid&#39;, sortable:false, hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;eventid&#39;, index:&#39;eventid&#39;, width:75, sortable:false, editable:true, editoptions:{size:10, readonly: &#39;readonly&#39;}, editrules: {required: true }}, <br />&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;facility&#39;, index:&#39;facility&#39;, width:80, sortable:false, editable:true, editoptions:{size:10, readonly: &#39;readonly&#39;}, editrules: {required: true }}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;eventdate&#39;, index:&#39;eventdate&#39;, width:90, sortable:false, editable:true, editoptions:{size:10, readonly: &#39;readonly&#39;}, editrules: {required: true }}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;timestarted&#39;, index:&#39;timestarted&#39;, width:80, align:&#39;right&#39;, sortable:false, editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;timestarted&#39;, index:&#39;timestarted&#39;, width:80, align:&#39;right&#39;, sortable:false, editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;cost&#39;, index:&#39;cost&#39;, width:80, align:&#39;right&#39;, sortable:false, editable:true }, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;costbytype&#39;,index:&#39;costbytype&#39;, width:50, editable: true},&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;hours&#39;, index:&#39;hours&#39;, width:80, align:&#39;right&#39;, sortable:false, editable:true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;discount&#39;, index:&#39;discount&#39;, width:80, align:&#39;right&#39;, sortable:false, editable:true }, <br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:150, align:&#39;right&#39;, sortable:false, editable:true}<br />&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#eventpager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;pgbuttons:false, <br />&#160;&#160; &#160;&#160;&#160; &#160;pginput:false, <br />&#160;&#160; &#160;&#160;&#160; &#160;viewrecords:false,<br />&#160;&#160; &#160;&#160;&#160; &#160;sortable: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;caption: &#39;Facility Charges&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;height: &#34;auto&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;footerrow : true,<br />&#160;&#160; &#160;&#160;&#160; &#160;gridComplete: function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//Get grid total<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var eventTotal = jQuery(&#34;#eventlist&#34;).jqGrid(&#39;getCol&#39;, &#39;total&#39;, false, &#39;sum&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;eventTotal = &#34;Sub-Total&#38;nbsp;&#38;nbsp;&#34; + currencyFmatter(eventTotal);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#34;#eventlist&#34;).jqGrid(&#39;footerData&#39;, &#39;set&#39;, {total:eventTotal}, false);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;jsonReader: {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; root: &#34;ROWS&#34;, //our data<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; page: &#34;PAGE&#34;, //current page<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; total: &#34;TOTAL&#34;, //total pages<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; records:&#34;RECORDS&#34;, //total records<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; cell: &#34;&#34;, //not used<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; id: &#34;0&#34; //will default first column as ID<br />&#160;&#160; &#160;&#160;&#160; &#160;}</p>
<p>&#160;&#160; &#160;&#160; }); <br />&#160;&#160; &#160; &#160;<br />&#160;&#160; &#160; &#160;<br />&#160;&#160; &#160;jQuery(&#34;#eventlist&#34;).jqGrid(&#39;navGrid&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#39;#eventpager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{add:true, edit:true, del:true, search:false},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{checkOnUpdate:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; savekey: [true,13], <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; navkeys: [true,38,40], <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; reloadAfterSubmit:false, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; closeOnEscape:true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; editCaption: &#34;Edit Facility Charge&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; addCaption: &#34;Add Facility Charge&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; bottominfo:&#34;Fields marked with (*) are required&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; beforeShowForm: function() { //for later <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</p>
<p>);</p>
<p>});</p>
</div>
<p style="padding-left: 30px;">&#160;</p>
<p>Thanks for any insight you can provide!!</p>
<p>Ember</p>
<p>PS</p>
<p>Also, I would love to be able to default to the first row when the user  click the edit button, but I can&#39;t figure out how to get before the  check for a selected row.&#160; beforeShowForm comes after the check for a  selected row. Any thoughts?</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 22:05:15 +0300</pubDate>
        </item>
</channel>
</rss>