<?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: In line editing issue - data problem?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem</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/in-line-editing-issue-data-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2201</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2201</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Reformatting the date as 09-23-2008 took care of the problem.&#160; Might be something to add to the documentation as a point of clarificaton.</p>
<p>Thanks again.</p>
<p>Pete</p>
]]></description>
        	        	<pubDate>Tue, 23 Sep 2008 15:43:14 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2195</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2195</guid>
        	        	<description><![CDATA[<p>Thanks again.</p>
<p>I guess I&#39;ll have to figure out to how to work around the problem.&#160; I might be able to reformat the date but it is coming from flexjson and I don&#39;t know how much control I am going to have.</p>
<p>I appreciate the help.</p>
<p>Pete</p></p>
]]></description>
        	        	<pubDate>Tue, 23 Sep 2008 12:41:33 +0300</pubDate>
        </item>
        <item>
        	<title>tony on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2181</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2181</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes you are right - please see</p>
<p><a href="http://htmlhelp.com/reference/html40/attrs.html" rel="nofollow" target="_blank"><a href="http://htmlhelp.com/reference/" rel="nofollow">http://htmlhelp.com/reference/</a>.....attrs.html</a></p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 23 Sep 2008 04:49:48 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2172</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2172</guid>
        	        	<description><![CDATA[<p>Even with the change to id: &#8220;absDate&#8221; it still doesn&#39;t work.&#160; In debug I see the data coming back in the "rowid" parameter.&#160; So using the data earlier in this post as an example, if I clicked on the first row, debug would show "09/24/08" as the rowid parameter in the editRow function. But the function doesn&#39;t continue processing, it simply returns.</p>
<p>Perhaps the "/" in the date is creating an issue?</p>
<p>If I use a field called "id" in the json data and add a number to each row, I do get the correct data in the grid and it is editable.</p>
<p>Ideas?</p>
]]></description>
        	        	<pubDate>Mon, 22 Sep 2008 18:12:29 +0300</pubDate>
        </item>
        <item>
        	<title>tony on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2144</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2144</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Actually this should be:</p>
<p>id: "absDate" and not id:"Absence Date",</p>
<p>since you do not have defined Absence Date as name, but as label.</p>
<p>This should work.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 20 Sep 2008 05:21:09 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2140</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2140</guid>
        	        	<description><![CDATA[<p>Thanks again Tony.&#160; I thought it might be a bug but, I am such a newbie that I figured it was something I was doing.</p>
<p>I tried both of your workarounds and neither worked.&#160; When I used the key:true in the colModel, the grid rendered but couldn&#39;t be edited. When I used id:"Absence Date" the grid wouldn&#39;t render and I got a javascript error:</p>
<p>ts.p.colModel[idn] is undefined<br /><a href="http://localhost:8090/asaap3/scripts/js/grid.base.js" rel="nofollow" target="_blank">http://localhost:8090/asaap3/scripts/js/grid.base.js</a><br />Line 626</p>
<p>So I will go back to using an id column in my json, but that isn&#39;t going to work in every situation.</p>
<p>I&#39;d be happy to test your bug fix when you think it is ready to try. <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-smile.gif" border="0" alt="Smile" /></p>
<p>Pete</p>
]]></description>
        	        	<pubDate>Fri, 19 Sep 2008 14:19:27 +0300</pubDate>
        </item>
        <item>
        	<title>tony on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2063</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2063</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes there is a bug when id:"0" - have corrected this.</p>
<p>For now you can use id:"Absence Date" , or simply set in the colModel</p>
<p>colModel:[<br />{name:&#39;absDate&#39;,</p>
<p>index:&#39;absDate&#39;,</p>
<p>width:120,</p>
<p>sorttype:"date",</p>
<p><strong>key: true</strong></p>
<p>},</p>
<p>....</p>
</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Wed, 17 Sep 2008 05:07:37 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2059</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2059</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I spent 3 or 4 hours on this while I was flying out to New York this morning and you came up with the same conclusion as I did.&#160; I think the ID is problem and jqgrid cannot handle inline editing when you have taken the jsonreader option id:"0".&#160; The colModel looks like this:</p>
<p>$("#workTimes").jqGrid({<br />&#160;&#160; url: url,<br />&#160;&#160; datatype: "json",<br />&#160;&#160; colNames:[&#39;Absence Date&#39;, &#39;Begin Time&#39;, &#39;End Time&#39;], <br />&#160; colModel:[<br />&#160;&#160; {name:&#39;absDate&#39;,index:&#39;absDate&#39;, width:120, sorttype:"date"},<br />&#160;&#160; {name:&#39;beginTime&#39;,index:&#39;beginTime&#39;, width:100, editable: true,editoptions:{size:10}}, <br />&#160;&#160; {name:&#39;endTime&#39;,index:&#39;endTime&#39;, width:100, editable: true,editoptions:{size:10}}<br />&#160;&#160; ],&#160; <br />&#160; rowNum:10, <br />&#160; rowList:[10,20,30],<br />&#160; imgpath: gridimgpath,<br />&#160; pager: $(&#39;#pager&#39;),<br />&#160; sortname: &#39;absDate&#39;,<br />&#160;&#160;&#160;&#160; onSelectRow: function(id){<br />&#160;&#160;&#160; &#160;&#160;&#160; if(id &#38;&#38; id!==lastsel3){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;#workTimes&#39;).restoreRow(lastsel3);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;#workTimes&#39;).editRow(id,true);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; lastsel3=id;<br />&#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; },<br />&#160; sortorder: "desc", <br />&#160; jsonReader: {repeatitems: false, cell: "", id: "0"},<br />&#160; caption: "Employee Work Times" <br />&#160; });</p>
<p>You can look at the data returned by json in my posts above. The absDate *was* set as the id originally.&#160; The way I got this to work as to eliminate the id:"0" from the jsonreader in the colModel and then add an id number to the json data.&#160; However, this is only a work around, what I need is a fix that will allow me to set the id and allow the inline editing.&#160; Again, in the example above, if I set id:"absDate" in the colModel, the grid won&#39;t support inline editing.</p>
<p>What does the id:"0" signify? Page 32 of the manual says "And, it is possible to set the id as number." Is that all id:"0" does? Set the id to allow a numeric value?&#160; I don&#39;t see an example that shows how you can set the id to another value using json data.&#160; Is there an example of this?</p>
<p>So, I know the id is the problem.&#160; How can I set the value so that I can use the absDate data as indicated in my earlier posts.</p>
<p>Thanks for the help.</p>
]]></description>
        	        	<pubDate>Tue, 16 Sep 2008 17:48:48 +0300</pubDate>
        </item>
        <item>
        	<title>tony on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2056</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2056</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How you edit the row. If possible send me jqGrid options and code where</p>
<p>you edit the row. I think that the problem is that you do not have set</p>
<p>the row id - i.e the uniquie row&#160; where you cando editing.</p>
</p>
<p>Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Tue, 16 Sep 2008 11:20:43 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2055</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2055</guid>
        	        	<description><![CDATA[<p>I actually have checked the code several times.&#160; The ONLY thing that is different is the json string in my code that returns a literal string like this:</p>
<p>{total: &#8220;1&#8243;,page: &#8220;1&#8243;,records:&#8221; 3&#8243;,rows : [<br /> &#160;{ absDate:"09/24/2008", begTime:"700", endTime:"1415"},<br /> &#160;{ absDate:"09/25/2008", begTime:"700", endTime:"1415"},<br /> &#160;{ absDate:"09/26/2008", begTime:"700", endTime:"1415"}<br /> &#160;]<br /> }</p>
<p>This is a string value. The grid will render but isn&#39;t editable.&#160; If the json call returns this literal string:</p>
<p>&#160;{ absDate:"09/24/2008", begTime:"700", endTime:"1415"},<br /> &#160;{ absDate:"09/25/2008", begTime:"700", endTime:"1415"},<br /> &#160;{ absDate:"09/26/2008", begTime:"700", endTime:"1415"}</p>
<p>I get no grid rendered at all.</p>
<p>Can you think of a reason as to why that would be?&#160; Does your PHP code return literal strings to your grids for parsing?</p>
]]></description>
        	        	<pubDate>Tue, 16 Sep 2008 09:30:55 +0300</pubDate>
        </item>
        <item>
        	<title>tony on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2047</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2047</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think,&#160; nothing special.. Just check your code again.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 16 Sep 2008 02:42:38 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2035</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p2035</guid>
        	        	<description><![CDATA[<p>Tony (sorry for the delay)</p>
<p>I want to do an inline edit.&#160; I used the example rowedex5.html to start with.&#160; I modified the colModel and the data var to use data that was like my application and then I was able to display and edit the grid using "local" data.&#160; No problem.</p>
<p>Then I replaced the "local" data with a json call to my servlet and although the data comes back from the servlet OK, I can see it in the grid, I cannot edit it.&#160; I am not sue what would be in the json data that would prevent editing but that seems to be the case.</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Sun, 14 Sep 2008 23:02:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1966</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1966</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>What do you use inline edit or form edit?</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 10 Sep 2008 10:16:22 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1950</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1950</guid>
        	        	<description><![CDATA[<p>Hi.</p>
<p>Not sure what is going on here but I think you have to add a navigation bar and specify you wanto to edit</p>
<p>.navGrid("#prowed1",{edit:false,add:false,del:false});</p>
<p>See the <a href="http://trirand.com/jqgrid/jqgrid.html" rel="nofollow" target="_blank">http://trirand.com/jqgrid/jqgrid.html</a></p>
</p>
<p>HTH</p></p>
]]></description>
        	        	<pubDate>Tue, 09 Sep 2008 16:24:29 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1949</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1949</guid>
        	        	<description><![CDATA[<p>Not sure what you mean by "in the directory".&#160; The data is returned by a json call and doesn&#39;t reside anywhere but in memory as far as I know.</p>
<p>When I use "local" data, the data is in the javascript as a var.</p>
<p>I think my json data is improperly formatted but when I look at the actual data returned in debug, it is identical to the data that the javascript var would have.</p></p>
]]></description>
        	        	<pubDate>Tue, 09 Sep 2008 16:11:20 +0300</pubDate>
        </item>
        <item>
        	<title>drlinux on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1929</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1929</guid>
        	        	<description><![CDATA[<p>Have u edit file in your directory?</p>
]]></description>
        	        	<pubDate>Tue, 09 Sep 2008 01:14:16 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on In line editing issue - data problem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1926</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/in-line-editing-issue-data-problem#p1926</guid>
        	        	<description><![CDATA[<p>I have a grid that has the following problem:</p>
<p>When I use a local data source and load the grid I can edit the columns/rows that I have indicated on my ColModel.&#160; If I use json data, the grid displays just fine but I cannot edit the rows/columns.</p>
<p>What I have narrowed this down to is that in my grid I pass the following in addition to the rows of data:</p>
<p>{total: "1",page: "1",records:" 3",rows : [<br />&#160;{ absDate:"09/24/2008", begTime:"700", endTime:"1415"},<br />&#160;{ absDate:"09/25/2008", begTime:"700", endTime:"1415"},<br />&#160;{ absDate:"09/26/2008", begTime:"700", endTime:"1415"}<br />&#160;]<br />}</p>
<p>Now, this is returned from a servlet so this is a string literal. The grid will render but I can&#39;t edit the returned records.&#160; Is there a reason for that or is the json string incorrectly formatted?</p>
<p>Is there an example that uses local data to do editing in a grid that uses the format above?</p>
<p>Since my servlet is always returning a string literal as the json return value, I just wonder if there isn&#39;t something in parsing the data that is causing the problem.&#160; For example in rowedex5.html you have a var defined as an array called mydata3.&#160; I used that same format to do this:</p>
<p>var mydata3= [<br />&#160;{ "absDate":"09/24/2008", "begTime":700, "endTime":1415},<br />&#160;{ "absDate":"09/25/2008", "begTime":700, "endTime":1415},<br />&#160;{ "absDate":"09/26/2008", "begTime":700, "endTime":1415}<br />&#160;];</p>
<p>And this works.&#160; However, if I have a json call that returns a literal string like this:</p>
<p>&#160;{ "absDate":"09/24/2008", "begTime":700, "endTime":1415},<br /> &#160;{ "absDate":"09/25/2008", "begTime":700, "endTime":1415},<br /> &#160;{ "absDate":"09/26/2008", "begTime":700, "endTime":1415}</p>
<p>It will not work the grid will not render.&#160; Even a literal string returned by json that looks like this:</p>
<p>&#160;[ { "absDate":"09/24/2008", "begTime":700, "endTime":1415},<br /> &#160;{ "absDate":"09/25/2008", "begTime":700, "endTime":1415},<br /> &#160;{ "absDate":"09/26/2008", "begTime":700, "endTime":1415} ]</p>
<p>Won&#39;t work.&#160; However if I return a string like this:</p>
<p>{total: "1",page: "1",records:" 3",rows : [<br /> &#160;{ absDate:"09/24/2008", begTime:"700", endTime:"1415"},<br /> &#160;{ absDate:"09/25/2008", begTime:"700", endTime:"1415"},<br /> &#160;{ absDate:"09/26/2008", begTime:"700", endTime:"1415"}<br /> &#160;]<br /> }</p>
<p>The grid will render but I cannot edit the row/column. In each case the colModel does not change, except for the url for the json call and the datatype of json rather than local.</p>
<p>I am not familiar enough with PHP to compare your PHP example to a java servlet but it appears my formatting of the return string for json is the problem.&#160; Any suggestions?</p>
]]></description>
        	        	<pubDate>Mon, 08 Sep 2008 16:46:52 +0300</pubDate>
        </item>
</channel>
</rss>