<?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: 3.4 Beta 2 - jqGridImport</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport</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/34-beta-2-jqgridimport/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jeff on 3.4 Beta 2 - jqGridImport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p6120</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p6120</guid>
        	        	<description><![CDATA[<p>I know this topic is a bit older, but I was having the same problem with json_encode and javascript functions. After a little searching, I found this solution:</p>
<p><a href="http://solutoire.com/2008/06/12/sending-javascript-functions-over-json/" rel="nofollow" target="_blank"><a href="http://solutoire.com/2008/06/1" rel="nofollow">http://solutoire.com/2008/06/1</a>.....over-json/</a></p>
<p>Very simple to implement and it works great!</p>
<p>--jeff</p>
]]></description>
        	        	<pubDate>Thu, 16 Apr 2009 12:54:44 +0300</pubDate>
        </item>
        <item>
        	<title>FredyC on 3.4 Beta 2 - jqGridImport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4333</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4333</guid>
        	        	<description><![CDATA[<p>Well, you always have an option to write your own json writer, which will build json string with your rules. When you look at english online manual, in comments to function json_encode, there are already some nice looking replacements, which you can eventualy extend for your needs. This core function is for simple types only with no extensibility.</p>
<p>I was solving this problem just today in my asp.net application, it was really easy.</p>
]]></description>
        	        	<pubDate>Tue, 03 Feb 2009 12:42:32 +0200</pubDate>
        </item>
        <item>
        	<title>daveyoi on 3.4 Beta 2 - jqGridImport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4330</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4330</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Good call on the [CDATA] tags - I did some research for a PHP/JSON equivalent and the awnser, it seems, is PHP 5.3 and NOWDOC.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1696' value='Select Code' data-codeid='sfcode1696' /></p>
<div class='sfcode' id='sfcode1696'>
<p>$complete_function = &#60;&#60;&#60;&#39;EOT&#39;</p>
<p>function() { dosomething(); }</p>
<p>EOT;</p>
<p>$export-&#62;grid-&#62;gridComplete = $complete_function;</p>
</div>
<p>Unfortunatley no 5.3 is still in Beta and not suitable for my production server. So I have a grid workaround.</p>
<p>I edited grid.import.js and made your $.ajax() call non async - this way I can then use .setGridWidth to correct the grid dimensions.&#160;</p>
<p>Thanks for your help Tony - I will take a copy of PHP 5.3 Beta down later and test the above to enure that it works.</p>
<p>Dave</p>
]]></description>
        	        	<pubDate>Tue, 03 Feb 2009 08:00:00 +0200</pubDate>
        </item>
        <item>
        	<title>tony on 3.4 Beta 2 - jqGridImport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4309</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4309</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think this is reasonable. The grid eval the string and there is no other way to determine if this is a function. If it is a quted it is interpreted as string. Any idea on how to resolve this will be helpful. Also it is easy when we use xml - in this case the function is enloased in CDATA.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 03 Feb 2009 01:09:49 +0200</pubDate>
        </item>
        <item>
        	<title>daveyoi on 3.4 Beta 2 - jqGridImport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4279</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4279</guid>
        	        	<description><![CDATA[<p>Hey Tony,</p>
<p>Thanks for your reply.. I had the same thought after posting on here.. and the jsonstring is displayed as I thought..</p>
<p>&#8220;loadComplete&#8221; : function () { ///blahblah; },&#160; (notice the lack of quotes around the function).</p>
<p>The problem I am having is recreating that in PHP..&#160;</p>
<p>This doesnt work</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4013' value='Select Code' data-codeid='sfcode4013' /></p>
<div class='sfcode' id='sfcode4013'>
<p>$output-&#62;grid-&#62;url = &#8220;dyntab.php?action=data&#8221;;</p>
<p>$output-&#62;grid-&#62;loadComplete = &#8220;function() { \\\\\\ blahblah;&#160; }&#8221;;</p>
</div>
<p>And this wont compile in PHP (obviously.)</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5599' value='Select Code' data-codeid='sfcode5599' /></p>
<div class='sfcode' id='sfcode5599'>
<p>$output-&#62;grid-&#62;url = &#8220;dyntab.php?action=data&#8221;;</p>
<p>$output-&#62;grid-&#62;loadComplete&#160; = function() { \\\\\\ blahblah; };</p>
</div>
<p>Im not sure if there is a way to store a function in an object to be then encoded in JSON.?</p>
<p>The main reason I need this to happen is because I would like to fix the bug where if you add columns dynamically the total grid width grows by 7px for each column rather than keeping the width as specified in the configuration. Maybe there is another way then callng setGridWidth after creation?</p>
<p>Thanks</p>
<p>Dave</p>
]]></description>
        	        	<pubDate>Sat, 31 Jan 2009 11:48:05 +0200</pubDate>
        </item>
        <item>
        	<title>tony on 3.4 Beta 2 - jqGridImport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4273</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4273</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think you should experiment in reverse order.</p>
<p>1. Construct your grid standart way including events</p>
<p>2. Make export of the grid using the method jqGridExport using the options jsonstring.</p>
<p>This way you can see how to configure the events in the jsonstring.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 31 Jan 2009 05:12:45 +0200</pubDate>
        </item>
        <item>
        	<title>daveyoi on 3.4 Beta 2 - jqGridImport</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4269</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/34-beta-2-jqgridimport#p4269</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>I am currently migrating my js based dynamic column code to use the newly implemented jqGridImport as in 3.4.</p>
<p>Is it possible to pass or attach an event handler?&#160; I have some code I want to execute after the grid is complete so thought to use the following:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2297' value='Select Code' data-codeid='sfcode2297' /></p>
<div class='sfcode' id='sfcode2297'>
<p>loadComplete : function()</p>
<p>{</p>
<p>&#160;&#160; // resize table width and other tidy actions</p>
<p>}</p>
</div>
<p>The problem is if I pass this as a string in JSON then it does not get evaluated as code..</p>
<p>Is it possible to use events using jqGridImport?</p>
<p>Cheers</p>
<p>Dave</p></p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 22:35:22 +0200</pubDate>
        </item>
</channel>
</rss>