<?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: toJSON conflict with toJson in inline editing save event</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event</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/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>zkmiller on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27803</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27803</guid>
        	        	<description><![CDATA[<p>I finally got it to work sort of.&#160; Now to get PHP to do it&#39;s job with the data string.</p>
</p>
<p>Thanks again for all your help.</p>
</p>
<p>Zeke</p>
]]></description>
        	        	<pubDate>Tue, 27 Nov 2012 22:08:51 +0200</pubDate>
        </item>
        <item>
        	<title>zkmiller on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27801</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27801</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Thank you for your help and especially your patience. I&#39;m pretty new to jqGrid and it seems I am always trying to do something no one else has talked about if they have done it. Most probably I am trying to do something the hard way when it should be very simple. In any case I am trying to use your suggestion but I haven&#39;t been able to get it to work.&#160; I am trying to get row data from a jqGrid using:</p>
<p>var rowdata =$(id).getRowData();</p>
<p>Once I have the row data in an array I need to convert to a json string so that I can post it to my controller action. How do I apply your suggestion?</p>
</p>
<p>Thanks again for your patience,</p>
</p>
<p>Zeke</p>
]]></description>
        	        	<pubDate>Tue, 27 Nov 2012 18:46:04 +0200</pubDate>
        </item>
        <item>
        	<title>tony on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27799</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27799</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>It seeems to me you do not read carfully my previous post.</p>
<p>You can use</p>
<p><strong>xmlJsonClass.toJson( object, name, ...) </strong></p>
<p>This function do what you want. There are other two default parameters (please look at this function).<br />The function is used in filtering (seraching) and other places if the the build in tojson is not available.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 27 Nov 2012 18:04:36 +0200</pubDate>
        </item>
        <item>
        	<title>zkmiller on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27798</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27798</guid>
        	        	<description><![CDATA[<blockquote>
<p>It doesn&#39;t look like the built in json functions will support converting a javascript array to a json string.&#160; It looks like it will only convert a DOM element to json. Am I missing something?&#160; I have included json2 because I need to stringify an array that I got using jqGrid.getRowData so I can send it to a controller action that will create an Excel spreadsheet.&#160; If I could stringify the array in some other way I would.</p>
</blockquote>
<blockquote>
</blockquote>
<blockquote>
<p>Regards</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Tue, 27 Nov 2012 17:26:45 +0200</pubDate>
        </item>
        <item>
        	<title>tony on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27795</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27795</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Do not use json2 (exclude it from your include) and use&#160; the jqGrid json functions&#160; - they&#160; are the same.</p>
<p><a href="https://github.com/tonytomov/jqGrid/blob/master/js/JsonXml.js" target="_blank">See jqGrid build in json functions</a>.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 27 Nov 2012 16:03:07 +0200</pubDate>
        </item>
        <item>
        	<title>zkmiller on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27788</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27788</guid>
        	        	<description><![CDATA[<blockquote>
<p>Tony, thanks for the suggestion. I tried it but it didn&#39;t help.&#160; The browser (IE7) does not have a built-in toJSON, that is why I included json2.js to support the JSON.stringify function.&#160; I need to support IE7 and IE8 with this site so I would like to find a way to make this work.</p>
</blockquote>
<blockquote>
<p>When I use the IE Developers tools in the &#39;Debug&#39; mode I can step through the process of &#39;save-row&#39; and the object passed to jquery to process has a Method : &#39;toJSON&#39; : &#39;toJSON()&#39; (in IE7 but not in IE8). Not sure what to do with that information.</p>
</blockquote>
<blockquote>
<p>Any more suggestions?</p>
</blockquote>
<blockquote>
</blockquote>
<blockquote>
<p>Zeke</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Mon, 26 Nov 2012 21:48:38 +0200</pubDate>
        </item>
        <item>
        	<title>tony on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27772</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27772</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I do not agree with this.</p>
<p>Please check your code again. Do you have a custom code when you do inline edit?</p>
<p>Th grid has its own toJoson methos but it is never called in inlinedit.</p>
<p>Moreover the method is ecloased in a class and is called this way:</p>
<p>xmlJsonClass.toJson(....)</p>
</p>
<p>The problem you may face is in parse function.</p>
<p>jqGrid check if the browser has a build in JSON and if not uses a eval.</p>
</p>
<p>Also this is possible if the flag</p>
<p>$.jgrid.useJSON = true;</p>
</p>
<p>If you maybe set this flag after loading the grid to false you maybe will not have problem in IE7.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 22 Nov 2012 12:02:28 +0200</pubDate>
        </item>
        <item>
        	<title>zkmiller on toJSON conflict with toJson in inline editing save event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27767</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/tojson-conflict-with-tojson-in-inline-editing-save-event#p27767</guid>
        	        	<description><![CDATA[<p>I am using jqGrid 4.4.1 and I recently added json2.js because I need to convert a javascript array object to a string to save on the page and then pass this value back on the next request.&#160; However, including json2 on the page breaks inline editing for jqgrid.&#160; When I remove the include for json2 then inline editing works as expected.</p>
<p>&#160;The error that I get is that &#8216;Line 191 Error: Object doesn&#39;t support this property or method&#8217; of json2.js that is caught in the save event prior to making the ajax call to the server.</p>
<p>My guess is that when JSON.stringify checks to see if the js object has a toJSON method it doesn&#39;t find one and calls it&#39;s own toJSON.&#160; But since jqGrid has a toJson method it also is called - possibly before the JSON.stringify call - and causes JSON.toJSON to throw an error.</p>
<p>How can we fix or get arround this? This happens in IE7 or older.&#160; I wouldn&#39;t normally worry about this but I have to handle IE7 clients with this site.</p>
<p>Thanks for any help with this.</p>
]]></description>
        	        	<pubDate>Wed, 21 Nov 2012 20:53:37 +0200</pubDate>
        </item>
</channel>
</rss>