<?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: clientSide and sorting issue</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue</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/clientside-and-sorting-issue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on clientSide and sorting issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18817</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18817</guid>
        	        	<description><![CDATA[<p>If you modify the contain of the jqGrid with respect of</p>
<p>jQuery("#grid_sched1&#8243;).setGridParam({data: myGridData});</p>
<p>you should refresh the internal index used for the local searching <span style="font-size: 13.8889px;">with respect of the following line</span></p>
<p>jQuery("#grid_sched1&#8243;)[0].refreshIndex();</p>
<p>(See&#160;/blog/?page_id=393/help/losing-edited-cell-data-after-paging/&#160;for details).</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 26 Jul 2010 18:06:55 +0300</pubDate>
        </item>
        <item>
        	<title>DroidDr on clientSide and sorting issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18816</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18816</guid>
        	        	<description><![CDATA[<p>Hello again,</p>
</p>
<p>I am back on this project.</p>
<p>Does someone&#160;think moving to 3.7.2 would fix some of the issues?</p>
<p>Now I am updating the local data with : jQuery("#grid_sched1&#8243;).setGridParam({data: myGridData});</p>
<p>everytime the data changes or user moves a row around or a user uses move row to bottom or to top.</p>
</p>
<p>Previous to&#160;using&#160;"jQuery("#grid_sched1&#8243;).setGridParam({data: myGridData})" for every data change, &#160;if a user moved rows around and then sorted, sometimes a row would be duplicated and a row would disappear.</p>
<p>I am using sortable rows as well.</p>
</p>
<p>If someone could help I would appreciate.</p>
</p>
<p>Best wishes to all!</p>
]]></description>
        	        	<pubDate>Mon, 26 Jul 2010 17:39:04 +0300</pubDate>
        </item>
        <item>
        	<title>DroidDr on clientSide and sorting issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18332</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18332</guid>
        	        	<description><![CDATA[<p>Thanks for the reply!<br />After reading on your latest version, I moved to version 3.7.1 as i contains local sorting and editing.</p>
<p>I did a test screen with generic data and cut down to the minimum so I can illustrate what I am trying to do, I specify data as local.</p>
<p>So what I did:</p>
<p>1- Everytime data is edited, I update the data item in the grid. (getGridParam("data"), then update data in array</p>
<p>2- I use sortablerows, so when the dragging of a row is finished, I update data in the grid array.</p>
<p>3-&#160; On the screen I am developing (not this one) I also have a function: move_row_bottom and move_row_top. It uses getRowData, delRowData, addRowData to move it. Then I update the grid data in the grid array.</p>
<p>With these methods sorting and editing works. Previous to this, data would not be saved or get corrupted in the grid (rows getting duplicated mainly).</p>
</p>
<p>I am not sure if I am using the grid properly for local data, but here is my code. I can email as well if desired.</p>
<p>I am using jquery 1.4.2, ui 1.8.1, jqgrid 3.7.1</p>
</p>
<p>----------------------------------------------</p>
<p>----------------------------------------------</p>
<p>---javascript</p>
<p>//----------------------------------------------------------------------------------------<br />// global data to page</p>
<p>var myData = new Array();<br />var myGridData = null;<br />var myRowData = null;</p>
<p>//-------------------------------------------------------------------------------------------------------------<br />// Document init function&#160; <br />//------------------------------------------------------------------------------------------------------------- <br />jQuery(document).ready(function()<br />{<br />&#160;</p>
<p>&#160;jQuery("#hidebehind").css("z-index",-1);<br />&#160;jQuery("#div_grid_sched").css("z-index",1);<br />&#160;jQuery("#interf_sched").css("z-index",1);<br />&#160;<br />&#160;// //test-----------------------<br />&#160;jQuery("#btnTest").attr("disabled",false);<br />&#160;jQuery("#btnTest").click( function() {<br />&#160; //myGridData = null;<br />&#160; myGridData = jQuery("#grid_sched1").getGridParam("data");<br />&#160; var myId = jQuery("#grid_sched1").getGridParam("selrow");</p>
<p>&#160; var myRowData = jQuery("#grid_sched1").getRowData(myId);<br />&#160; <br />&#160; var myPos = -1;<br />&#160; var ids = jQuery("#grid_sched1").getDataIDs();<br />&#160; for(var i=0;i&#60;ids.length;i++)<br />&#160; {<br />&#160;&#160; if ( myId == ids[i] )<br />&#160;&#160; {<br />&#160;&#160;&#160; myPos = i;<br />&#160;&#160;&#160; break;<br />&#160;&#160; }<br />&#160; }<br />&#160; if ( myPos &#62; -1 )<br />&#160; {<br />&#160;&#160; myGridData[myPos] = myRowData;<br />&#160; }<br />&#160; jQuery("#grid_sched1").setGridParam({data: myGridData});<br />&#160;});<br />&#160;</p>
<p>&#160;// end test------------------------------</p>
<p>&#160;myData = [<br />&#160; {COL1: "1", COL2: "1", COL3: "9", COL4: "a", COL5: "a"},<br />&#160; {COL1: "2", COL2: "2", COL3: "1", COL4: "b", COL5: "b"},<br />&#160; {COL1: "3", COL2: "3", COL3: "8", COL4: "c", COL5: "c"},<br />&#160; {COL1: "4", COL2: "4", COL3: "2", COL4: "d", COL5: "d"},<br />&#160; {COL1: "5", COL2: "5", COL3: "7", COL4: "e", COL5: "e"},<br />&#160; {COL1: "6", COL2: "6", COL3: "3", COL4: "f", COL5: "f"},<br />&#160; {COL1: "7", COL2: "7", COL3: "6", COL4: "g", COL5: "g"},<br />&#160; {COL1: "8", COL2: "8", COL3: "4", COL4: "h", COL5: "h"},<br />&#160; {COL1: "9", COL2: "9", COL3: "5", COL4: "i", COL5: "i"},<br />&#160; <br />&#160;];<br />&#160;//-------------------------------------------<br />&#160;// reason list grid.<br />&#160;jQuery("#grid_sched1").jqGrid({ <br />&#160; datatype: "local",<br />&#160; data: myData,<br />&#160; width: 890,<br />&#160; height: 420,<br />&#160; colNames:[&#39;C1&#39;, &#39;C2&#39;, &#39;C3&#39;, &#39;C4&#39;, &#39;C5&#39;],&#160;&#160;&#160;&#160; // names of columns <br />&#160; colModel :[<br />&#160; {name:&#39;COL1&#39;, index:&#39;COL1&#39;, width:40, sortable: true, sorttype: &#39;int&#39;, editable: true,&#160; editrules:{number:true}},<br />&#160; {name:&#39;COL2&#39;, index:&#39;COL2&#39;, width:40, sortable: true, sorttype: &#39;int&#39;, editable: true,&#160; editrules:{number:true}},<br />&#160; {name:&#39;COL3&#39;, index:&#39;COL3&#39;, width:40, sortable: true, sorttype: &#39;int&#39;, editable: true,&#160; editrules:{number:true}},<br />&#160; {name:&#39;COL4&#39;, index:&#39;COL4&#39;, width:40, sortable: true, editable: true},<br />&#160; {name:&#39;COL5&#39;, index:&#39;COL5&#39;, width:40, sortable: true, editable: true}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160; afterSaveCell: function(rowid, cellname, value, iRow, iCol){<br />&#160;&#160; var myObj = jQuery("#grid_sched1").getRowData(rowid);<br />&#160;&#160; var myGridData = jQuery("#grid_sched1").getGridParam("data");<br />&#160;&#160; //alert("row: " + iRow + " col: " + iCol + " id: " + rowid);<br />&#160;&#160; myGridData[iRow] = myObj;<br />&#160;&#160; // jQuery("#grid_sched1").setGridParam({data: myGridData});<br />&#160;&#160; //update_grid_data();<br />&#160; },&#160; <br />&#160; cellEdit: true,<br />&#160; cellsubmit: &#39;clientArray&#39;,<br />&#160; loadonce: true,<br />&#160; rowNum:90,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // number of records<br />&#160; caption: &#39;PROD SCHEDULE&#39;,<br />&#160; hidegrid: true,<br />&#160; hiddengrid: false, <br />&#160;&#160;&#160; });<br />&#160;jQuery("#grid_sched1").jqGrid(&#39;sortableRows&#39;, {delay: 200, distance: 10});<br />&#160;<br />&#160;$("#grid_sched1").bind( "sortstop", function(event, ui) {<br />&#160; //alert("sort end");<br />&#160; update_grid_data();<br />&#160;}); <br />});<br />&#160;</p>
<p>//-------------------------------------------------------------------------------------------------------------<br />// end of Document ready function<br />//-------------------------------------------------------------------------------------------------------------<br />function update_grid_data()<br />{<br />&#160;//myGridData = jQuery("#grid_sched1").getGridParam("data");<br />&#160;myGridData = new Array();<br />&#160;var myRowData = null;<br />&#160;var ids = jQuery("#grid_sched1").getDataIDs();<br />&#160;for(var ii=0;ii&#60;ids.length;ii++)<br />&#160;{<br />&#160; if ( ids[ii] )<br />&#160; {<br />&#160;&#160; myRowData = jQuery("#grid_sched1").getRowData(ids[ii]);<br />&#160;&#160; myGridData[ii] = myRowData;<br />&#160; }<br />&#160;}</p>
<p>&#160;jQuery("#grid_sched1").setGridParam({data: myGridData}); <br />&#160;<br />}</p>
</p>
<p>----------------------------------------------</p>
<p>----------------------------------------------</p>
<p>---php file</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;</p>
<p>&#60;html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"&#62;</p>
<p>&#60;head&#62;</p>
<p>&#160;&#60;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&#62;<br />&#160;&#60;title&#62;Grid test&#60;/title&#62;<br />&#160;<br />&#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="jquery/ui/css/flick/jquery-ui-1.8.1.custom.css" /&#62;<br />&#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="jquery/jqgrid_3.7.1/css/ui.jqgrid-custom.css" /&#62;<br />&#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="_styles/grid_test.css" /&#62;<br />&#160;<br />&#160;<br />&#160;&#60;script src="jquery/jqgrid_3.7.1/js/jquery-1.4.2.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#60;script src="jquery/ui/js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#60;script src="jquery/jqgrid_3.7.1/js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#60;script src="jquery/jqgrid_3.7.1/js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#60;script src="jquery/test_jqgrid/js/json2.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;<br />&#160;<br />&#160;&#60;script src="scripts/grid_test.js.php" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;/head&#62;<br />&#60;body&#62;</p>
</p>
<p>&#60;div id="outer_sched"&#62;<br />&#160;&#60;div id="interf_sched"&#62;</p>
<p>&#160; &#60;input type="BUTTON" id="btnTest" value="Test" onClick=&#39;&#39;/&#62;<br />&#160; <br />&#160; &#60;div id="sched_display_data"&#62;&#60;/div&#62;<br />&#160;&#60;/div&#62;<br />&#160;&#60;div id="hidebehind"&#62;&#60;/div&#62;<br />&#160;</p>
<p>&#160;&#60;div id="div_grid_sched"&#62;<br />&#160; &#60;table id="grid_sched1" class="scroll"&#62;&#60;/table&#62;</p>
<p>&#160;&#60;/div&#62;</p>
<p>&#60;/div&#62;<br />&#60;/body&#62;</p>
<p>&#60;/html&#62;</p>
<p>----------------------------------------------</p>
<p>----------------------------------------------</p>
<p>---css</p>
<p>html{border:0; margin:0; padding:0; }<br />body{border:0; margin:0; padding:0; font: arial; }</p>
<p>/*---------------------------divisions, tables------------------------------*/<br />#outer_sched<br />{<br />&#160;position: absolute;<br />&#160;width: 1024px;<br />&#160;top: 10px;<br />&#160;left: 50px;<br />&#160;margin: 0px;<br />}</p>
<p>#interf_sched<br />{<br />&#160;position: absolute;<br />&#160;width: 900px;<br />&#160;height: 130px;<br />&#160;top: 0px;<br />&#160;left: 0px;<br />&#160;border: 1px solid black;<br />&#160;/*background-color: #2375D8;*/<br />&#160;background-color: #71A0E8;<br />}</p>
<p>#hidebehind<br />{<br />&#160;width: 1024px;<br />&#160;height:480px;<br />&#160;background-color: white;<br />}</p>
<p>#div_grid_sched<br />{<br />&#160;position: absolute;<br />&#160;width: 900px;<br />&#160;height: 480px;<br />&#160;top: 135px;<br />&#160;left: 0px;<br />&#160;border: 1px solid navy;<br />}</p>
<p>#sched_display_data<br />{<br />&#160;position: absolute;<br />&#160;top: 5px;<br />&#160;left: 540px;<br />&#160;width: 300px;<br />&#160;/*height:130px;*/<br />&#160;background-color: white;<br />}<br />#sched_display_data table<br />{<br />&#160;border: 1px solid black;<br />&#160;border-collapse:collapse;<br />&#160;width: 300px;<br />}<br />#sched_display_data table td<br />{<br />&#160;border: 1px solid black;<br />&#160;<br />}</p>
<p>/*-------------------------------------------- buttons----------------------*/</p>
<p>#btnMvTop<br />{<br />&#160;position: absolute;<br />&#160;left: 10px;<br />&#160;top: 66px;<br />&#160;width: 100px;<br />&#160;background-color: silver;<br />}<br />#btnMvBottom<br />{<br />&#160;position: absolute;<br />&#160;left: 10px;<br />&#160;top: 93px;<br />&#160;width: 100px;<br />&#160;//background-color: royalblue;<br />&#160;background-color: silver;<br />}</p>
<p>/*------------------------------ other styling --------------------------------*/</p>
<p>.ui-sortable-helper<br />{<br />&#160;border-bottom: 1px solid black;<br />}<br />.ui-sortable-helper td<br />{<br />&#160;background: silver;<br />}</p>
<p>/*-----test stuff------------------------------*/</p>
<p>#btnTest<br />{<br />&#160;position: absolute;<br />&#160;left: 440px;<br />&#160;top: 5px;<br />&#160;width: 100px;<br />&#160;background-color: silver;<br />}</p>
]]></description>
        	        	<pubDate>Wed, 30 Jun 2010 21:13:04 +0300</pubDate>
        </item>
        <item>
        	<title>tony on clientSide and sorting issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18193</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18193</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How look your data? Is it possible to post it.</p>
<p>Also I see a lot of events here including onSortCol event. Do you have some code here - if so could you please post the whole code without cutting.</p>
<p>Also the best will be if you provide a link to the problem.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 11:11:51 +0300</pubDate>
        </item>
        <item>
        	<title>DroidDr on clientSide and sorting issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18118</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/clientside-and-sorting-issue#p18118</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Thanks again to the creators/developers of jqgrid, it is a GREAT tool.</p>
</p>
<p>I have a grid that I load using clientSide (or local) data. I load the data using a custom ajax request and load the grid with .addRowData. Ids for these rows start at 1 for the first then 2, 3, etc.</p>
<p>Some of my columns are sortable.</p>
</p>
<p>Here is my issue:<br />Sorting does not work properly for these columns. However, when I sort ANOTHER column then come back to the column I want to sort, &#160;the sort is done correctly.</p>
<p>Also when I edit the data in one of the columns that is also sortable, if I sort that column, the new value does not sort properly, however, if I sort ANOTHER column and then come back and sort the one I want, it sorts correctly.</p>
<p>The column that interests me mainly (see code) is ALT_ORDER</p>
</p>
<p>I have tried to :</p>
<p>- set the datatype to jsonstring and a blank datastr. The sorting is fine initially for all columns, but as soom as I edit data on the sortable columns, I have to sort ANOTHER column, then I come back to the desired column for correct sorting.</p>
<p>- I have tried many other things such as setting the&#160;&#160;datatype to jsonstring and a blank datastr back again, but does not work.</p>
</p>
<p>Any ideas on how I can fix my issue?</p>
</p>
<p>I am using grid 3.6.5, jquery 1.4.2, ui 1.8.1</p>
<p>I use the sorttype in colModel for the columns I want to sort.</p>
<p>Best wishes to All!</p>
</p>
<p>Here is my code.</p>
<p>------------------------------------------------------------------------</p>
<p>jQuery("#grid_sched1").jqGrid({ <br />&#160;&#160;//url: "",<br />&#160;&#160;//datatype: &#39;json&#39;, <br />&#160;&#160;datatype: &#39;jsonstring&#39;,&#160; <br />&#160;&#160;datastr : &#39;""&#39;,<br />&#160;&#160;//datatype: &#39;local&#39;,<br />&#160;&#160;//datatype: &#39;clientSide&#39;,<br />&#160;&#160;width: 890,<br />&#160;&#160;height: 420,<br />&#160;&#160;colNames:[&#39;ID&#39;, &#39;SCHED_ORDER&#39;, &#39;PROD ORD.&#39;, &#39;ALT ORD&#39;, &#39;STD#&#39;, &#39;SUP.C.&#39;, &#39;GRADE&#39;,&#39;MIX&#39;,&#39;TONS REQ&#39;,&#39;TONS PROD&#39;,&#39;COMPL&#39;,&#39;DATE&#39;,&#39;INSTR&#39;, &#39;MOD_FLAGS&#39;],&#160;&#160;&#160;&#160; // names of columns <br />&#160;&#160;colModel :[<br />&#160;&#160;{name:&#39;LINE_ID&#39;, index:&#39;LINE_ID&#39;, width:40, sortable: false, sorttype: &#39;int&#39;, hidden: true},<br />&#160;&#160;{name:&#39;PROD_ORDER&#39;, index:&#39;PROD_ORDER&#39;, width:50, sortable: false, sorttype: &#39;int&#39;, hidden: true},<br />&#160;&#160;{name:&#39;SCHED_ORDER&#39;, index:&#39;SCHED_ORDER&#39;, width:50, sortable: true, sorttype: &#39;int&#39;, hidden: true},<br />&#160;&#160;{name:&#39;ALT_ORDER&#39;, index:&#39;ALT_ORDER&#39;, width:40, sortable: true, sorttype: &#39;int&#39;, hidden: false, editable: true,&#160; editrules:{number:true}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;STDNUM&#39;, index:&#39;STDNUM&#39;, width:40, sortable: false},<br />&#160;&#160;{name:&#39;SUPP_CODE&#39;, index:&#39;SUPP_CODE&#39;, width:40, sortable: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;GRADE&#39;, index:&#39;GRADE&#39;, width:70, sortable: true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;MIX&#39;, index:&#39;MIX&#39;, width:80, sortable: true, editable: true, edittype:"select",editoptions:{value:mixListStr}}, <br />&#160;&#160;{name:&#39;TONS_REQ&#39;, index:&#39;TONS_REQ&#39;, width:60, sortable: false}, <br />&#160;&#160;{name:&#39;TONS_PROD&#39;, index:&#39;TONS_PROD&#39;, width:60, sortable: false}, <br />&#160;&#160;{name:&#39;COMPL&#39;, index:&#39;COMPL&#39;, width:40, sortable: true}, <br />&#160;&#160;{name:&#39;DATE_REQ&#39;, index:&#39;DATE_REQ&#39;, width:70, sortable: true}, &#160;&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;INSTR&#39;, index:&#39;INSTR&#39;, width:150, align:&#39;left&#39;, editable: true, editrules:{ required: false }, edittype: &#39;textarea&#39;, sortable: false },<br />&#160;&#160;{name:&#39;MOD_FLAGS&#39;, index:&#39;MOD_FLAGS&#39;, width:40, sortable: false, hidden: true}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;cellEdit: true,<br />&#160;&#160;cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160;loadonce: true,<br />&#160;&#160;//cellurl: &#39;&#39;,&#160; <br />&#160;&#160;//altRows: true,<br />&#160;&#160;//pager: jQuery(&#39;#pager&#39;),&#160;&#160;&#160;&#160;&#160;&#160;&#160; //pager bar<br />&#160;&#160;hoverrows: true,<br />&#160;&#160;//rowNum:90,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // number of records<br />&#160;&#160;//rowList:[12,24],&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // change # or rows visible through grid<br />&#160;&#160;//sortname: &#39;ORDER&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // init sorting<br />&#160;&#160;sortorder: "asc",&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // init sort order<br />&#160;&#160;//viewrecords: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // show total # of records in pager.<br />&#160;&#160;caption: &#39;PROD SCHEDULE&#39;,<br />&#160;&#160;hidegrid: true,<br />&#160;&#160;hiddengrid: false, <br />&#160;&#160;imgpath: &#39;jquery/jqgrid/themes/basic/images&#39;,&#160;&#160;&#160;&#160; // path to imgs.<br />&#160;&#160;//multiselect: true,<br />&#160;&#160;loadComplete: function(){<br />&#160;&#160;&#160;//alert("init reason grid load");<br />&#160;&#160;},<br />&#160;&#160;beforeEditCell: function(rowid, cellname, value, iRow, iCol){<br />&#160;&#160;&#160;instrEditingCell = 1; instrEditingRowid = rowid; instrEditingICol = iCol; instrEditingIRow = iRow;<br />&#160;&#160;},<br />&#160;&#160;afterEditCell: function(rowid, cellname, value, iRow, iCol){<br />&#160;&#160;&#160;//alert("after edit");<br />&#160;&#160;},&#160;&#160;<br />&#160;&#160;afterSaveCell: function(rowid, cellname, value, iRow, iCol){<br />&#160;&#160;&#160;// if ( cellname == "ALT_ORDER" ) <br />&#160;&#160;&#160;// {<br />&#160;&#160;&#160;&#160;// // FIX need to do this or else sorting immediately after this does not work until another sorting elsewhere happens.<br />&#160;&#160;&#160;&#160;// var myObj = jQuery("#grid_sched1").getRowData(rowid);<br />&#160;&#160;&#160;&#160;// //alert("save alt order: " + myObj.ALT_ORDER );<br />&#160;&#160;&#160;&#160;// jQuery("#grid_sched1").setRowData(rowid, {ALT_ORDER: myObj.ALT_ORDER});<br />&#160;&#160;&#160;// }&#160;&#160;<br />&#160;&#160;},<br />&#160;&#160;beforeSaveCell: function(rowid, cellname, value, iRow, iCol){<br />&#160;&#160;&#160;instrEditingCell = 0; instrEditingRowid = 0; instrEditingICol = 0; instrEditingIRow = 0;<br />&#160;&#160;},<br />&#160;&#160;beforeSubmitCell: function(rowid, cellname, value, iRow, iCol){<br />&#160;&#160;},<br />&#160;&#160;onSelectRow: function(rowid, status){<br />&#160;&#160;&#160;<br />&#160;&#160;},<br />&#160;&#160;onSortCol: function(index, iCol, sortorder){<br />&#160;&#160;&#160;</p>
<p>&#160;&#160;&#160;<br />&#160;&#160;},<br />&#160;&#160;onCellSelect: function(rowid, iCol, value){<br />&#160;&#160;&#160;if ( ( lastCellRow != -1 &#38;&#38; lastCellCol != -1 ) &#38;&#38; ((rowid != lastCellRow) &#124;&#124; (iCol != lastCellCol)) )<br />&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;//alert("save cell");<br />&#160;&#160;&#160;&#160;//jQuery("#grid_sched1").saveCell(lastCellRow, lastCellCol);&#160;<br />&#160;&#160;&#160;}<br />&#160;&#160;&#160;lastCellRow = rowid; lastCellCol = iCol;<br />&#160;&#160;&#160;// remove textarea<br />&#160;&#160;&#160;// carefull if we add other editables<br />&#160;&#160;&#160;if&#160; ( iCol != lastCellCol) <br />&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;if ( instrEditingCell == 1 )&#160;<br />&#160;&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;&#160;instrEditingCell = 0; instrEditingRowid = 0; instrEditingICol = 0; instrEditingIRow = 0;<br />&#160;&#160;&#160;&#160;&#160;jQuery("#grid_sched1").saveCell(instrEditingIRow, instrEditingICol);<br />&#160;&#160;&#160;&#160;&#160;//alert("saved cell");<br />&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;}<br />&#160;&#160;&#160;<br />&#160;&#160;&#160;<br />&#160;&#160;}<br />&#160;&#160;&#160; });</p>
</p>
<p>--------------------------------------------------------------------------</p></p>
]]></description>
        	        	<pubDate>Tue, 22 Jun 2010 01:13:32 +0300</pubDate>
        </item>
</channel>
</rss>