<?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: Problem with import ( JSON)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json</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/problem-with-import-json/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dariorusso on Problem with import ( JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5511</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5511</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>&#160; I have spent some time trying to have the json import work.</p>
<p>I realized that, by default, it look for the configuration under the "grid" parameter. So it should something like:</p>
</p>
<p>{"grid":<br />&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160; &#8221;url&#8221; : &#8220;translation_JSON.php?nd=1236783268906&#8243;,<br />&#160; &#160; &#160;&#160; &#8221;height&#8221; : &#8220;100%&#8221;,<br />&#160; &#160; &#160;&#160; &#8221;page&#8221; : &#8220;1&#8243;,<br />&#160; &#160; &#160;&#160; &#8221;rowNum&#8221; : 100,</p>
<p>.....</p>
<p>.....</p>
</p>
<p>I hope this helps</p></p>
]]></description>
        	        	<pubDate>Sun, 22 Mar 2009 18:24:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Problem with import ( JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5326</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5326</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for this.</p>
<p>I see something wrong which should be corrected when a export method is used.</p>
<p>There will be certain problems when one of these parameters is set to true: multiselect, subgrid, treeGrid.</p>
<p>The problem is that the additional columns (cb, sg and treegrid cols) generated when the grid is constructed should be removed when a export is called.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 13 Mar 2009 10:16:12 +0200</pubDate>
        </item>
        <item>
        	<title>majkel on Problem with import ( JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5304</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5304</guid>
        	        	<description><![CDATA[<p>"pager" : "#pager2",</p>
</p>
<p>Whole JSON</p>
<p>{<br />&#160;"url" : "translation_JSON.php?nd=1236783268906",<br />&#160;"height" : "100%",<br />&#160;"page" : "1",<br />&#160;"rowNum" : 100,<br />&#160;"records" : "38",<br />&#160;"pager" : "#pager2",<br />&#160;"pgbuttons" : true,<br />&#160;"pginput" : true,<br />&#160;"colModel" : [{<br />&#160;			"name" : "cb",<br />&#160;			"width" : 27,<br />&#160;			"sortable" : false,<br />&#160;			"resizable" : false,<br />&#160;			"hidedlg" : true,<br />&#160;			"search" : false<br />&#160;		}, {<br />&#160;			"name" : "id_item",<br />&#160;			"index" : "id_lang_tag",<br />&#160;			"width" : 30,<br />&#160;			"resizable" : true,<br />&#160;			"search" : true<br />&#160;		}, {<br />&#160;			"name" : "name",<br />&#160;			"index" : "name",<br />&#160;			"width" : 130,<br />&#160;			"resizable" : true,<br />&#160;			"search" : true<br />&#160;		}, {<br />&#160;			"name" : "type",<br />&#160;			"index" : "type",<br />&#160;			"editable" : true,<br />&#160;			"width" : 50,<br />&#160;			"resizable" : true,<br />&#160;			"search" : true<br />&#160;		}, {<br />&#160;			"name" : "trans1",<br />&#160;			"index" : "trans1",<br />&#160;			"editable" : true,<br />&#160;			"edittype" : "textarea",<br />&#160;			"width" : 200,<br />&#160;			"editoptions" : {<br />&#160;				"rows" : "5"<br />&#160;			},<br />&#160;			"resizable" : true,<br />&#160;			"search" : true<br />&#160;		}, {<br />&#160;			"name" : "status1",<br />&#160;			"index" : "status1",<br />&#160;			"editable" : true,<br />&#160;			"edittype" : "select",<br />&#160;			"editoptions" : {<br />&#160;				"value" : ":all;initial:initial;copied:copied;filed:filed;checkit:checkit"<br />&#160;			},<br />&#160;			"width" : 30,<br />&#160;			"resizable" : true,<br />&#160;			"search" : true<br />&#160;		}, {<br />&#160;			"name" : "trans2",<br />&#160;			"index" : "trans2",<br />&#160;			"editable" : true,<br />&#160;			"edittype" : "textarea",<br />&#160;			"width" : 200,<br />&#160;			"editoptions" : {<br />&#160;				"rows" : "5"<br />&#160;			},<br />&#160;			"resizable" : true,<br />&#160;			"search" : true<br />&#160;		}, {<br />&#160;			"name" : "status2",<br />&#160;			"index" : "status2",<br />&#160;			"editable" : true,<br />&#160;			"edittype" : "select",<br />&#160;			"editoptions" : {<br />&#160;				"value" : ":all;2:initial;3:copied;4:filed;5:checkit"<br />&#160;			},<br />&#160;			"width" : 30,<br />&#160;			"resizable" : true,<br />&#160;			"search" : true<br />&#160;		}],<br />&#160;"rowList" : [10, 20, 30, 50, 100, 1000],<br />&#160;"colNames" : ["&#60;input id=&#39;cb_jqg&#39; class=&#39;cbox&#39; type=&#39;checkbox&#39;/&#62;", "ID",<br />&#160;		"Tag name", "type", "Translation PL", "status1", "Translation EN",<br />&#160;		"status2"],<br />&#160;"sortorder" : "asc",<br />&#160;"sortname" : "name",<br />&#160;"datatype" : "json",<br />&#160;"mtype" : "GET",<br />&#160;"imgpath" : "../js/jqgrid/themes/steel/images/",<br />&#160;"sortascimg" : "sort_asc.gif",<br />&#160;"sortdescimg" : "sort_desc.gif",<br />&#160;"firstimg" : "first.gif",<br />&#160;"previmg" : "prev.gif",<br />&#160;"nextimg" : "next.gif",<br />&#160;"lastimg" : "last.gif",<br />&#160;"altRows" : true,<br />&#160;"selarrrow" : [],<br />&#160;"savedRow" : [],<br />&#160;"shrinkToFit" : true,<br />&#160;"xmlReader" : {<br />&#160;	"root" : "rows",<br />&#160;	"row" : "row",<br />&#160;	"page" : "rows&#62;page",<br />&#160;	"total" : "rows&#62;total",<br />&#160;	"records" : "rows&#62;records",<br />&#160;	"repeatitems" : true,<br />&#160;	"cell" : "cell",<br />&#160;	"id" : "[id]",<br />&#160;	"userdata" : "userdata",<br />&#160;	"subgrid" : {<br />&#160;		"root" : "rows",<br />&#160;		"row" : "row",<br />&#160;		"repeatitems" : true,<br />&#160;		"cell" : "cell"<br />&#160;	}<br />&#160;},<br />&#160;"jsonReader" : {<br />&#160;	"root" : "rows",<br />&#160;	"page" : "page",<br />&#160;	"total" : "total",<br />&#160;	"records" : "records",<br />&#160;	"repeatitems" : true,<br />&#160;	"cell" : "cell",<br />&#160;	"id" : "id",<br />&#160;	"userdata" : "userdata",<br />&#160;	"subgrid" : {<br />&#160;		"root" : "rows",<br />&#160;		"repeatitems" : true,<br />&#160;		"cell" : "cell"<br />&#160;	}<br />&#160;},<br />&#160;"subGrid" : false,<br />&#160;"subGridModel" : [],<br />&#160;"lastpage" : 1,<br />&#160;"lastsort" : 2,<br />&#160;"selrow" : null,<br />&#160;"beforeSelectRow" : null,<br />&#160;"onSelectRow" : null,<br />&#160;"onSortCol" : null,<br />&#160;"ondblClickRow" : null,<br />&#160;"onRightClickRow" : null,<br />&#160;"onPaging" : null,<br />&#160;"onSelectAll" : null,<br />&#160;"loadComplete" : null,<br />&#160;"gridComplete" : null,<br />&#160;"loadError" : null,<br />&#160;"loadBeforeSend" : null,<br />&#160;"afterInsertRow" : null,<br />&#160;"beforeRequest" : null,<br />&#160;"onHeaderClick" : null,<br />&#160;"viewrecords" : true,<br />&#160;"loadonce" : false,<br />&#160;"multiselect" : true,<br />&#160;"multikey" : false,<br />&#160;"editurl" : "translation_edit.php",<br />&#160;"search" : false,<br />&#160;"searchdata" : {},<br />&#160;"caption" : "Wydatki miesiÄ™czne",<br />&#160;"hidegrid" : true,<br />&#160;"hiddengrid" : false,<br />&#160;"postData" : {<br />&#160;	"nd" : 1236783269062,<br />&#160;	"_search" : false,<br />&#160;	"rows" : 100,<br />&#160;	"page" : 1,<br />&#160;	"sidx" : "name",<br />&#160;	"sord" : "asc"<br />&#160;},<br />&#160;"userData" : {},<br />&#160;"treeGrid" : false,<br />&#160;"treeGridModel" : "nested",<br />&#160;"treeReader" : {},<br />&#160;"ExpandColumn" : null,<br />&#160;"tree_root_level" : 0,<br />&#160;"prmNames" : {<br />&#160;	"page" : "page",<br />&#160;	"rows" : "rows",<br />&#160;	"sort" : "sidx",<br />&#160;	"order" : "sord"<br />&#160;},<br />&#160;"sortclass" : "grid_sort",<br />&#160;"resizeclass" : "grid_resize",<br />&#160;"forceFit" : false,<br />&#160;"gridstate" : "visible",<br />&#160;"cellEdit" : true,<br />&#160;"cellsubmit" : "clientArray",<br />&#160;"nv" : 0,<br />&#160;"loadui" : "block",<br />&#160;"toolbar" : [true, "top"],<br />&#160;"scroll" : false,<br />&#160;"multiboxonly" : false,<br />&#160;"scrollrows" : false,<br />&#160;"recordtext" : "Row(s)",<br />&#160;"loadtext" : "Loading...",<br />&#160;"pgtext" : "/",<br />&#160;"afterSaveCell" : function(rowid, name, val, iRow, iCol) {</p>
<p>&#160;	alert(&#39;sdfsd&#39;);<br />&#160;},<br />&#160;"userdata" : "userdata",<br />&#160;"id" : "grid_table",<br />&#160;"keyIndex" : false,<br />&#160;"_width" : 761,<br />&#160;"_height" : 70<br />}</p>
]]></description>
        	        	<pubDate>Thu, 12 Mar 2009 16:40:06 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Problem with import ( JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5278</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5278</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How is your pager defined in the grid? Do you have read the IMPORTANT NOTES when using these functions?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 12 Mar 2009 11:24:29 +0200</pubDate>
        </item>
        <item>
        	<title>majkel on Problem with import ( JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5245</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-import-json#p5245</guid>
        	        	<description><![CDATA[<p>Problem with import with JSON<br />I have the following code</p>
<p>in JS file.<br />// import<br />$("#grid_table").jqGridImport({impurl:"translation_cfg.json",imptype:"json"});</p>
<p>// export<br />jQuery(&#39;#gridconf&#39;).click( function() {<br />&#160;    var strxml=jQuery(&#39;#grid_table&#39;).jqGridExport(<br />&#160;                     {exptype:"jsonstring"});<br />&#160;    jQuery(&#39;#txmlarea&#39;).text(strxml);<br />})</p>
<p>translation_cfg.json:</p>
<p>{<br />&#160;"url" : "translation_JSON.php?nd=1236783268906",<br />&#160;"height" : "100%",<br />&#160;"page" : "1",<br />&#160;......<br />}</p>
<p>I am not able to import config from JSON file(previusly exported). When I click to import only refresh is done and empty rectangle appears.</p>
<p>I&#39;ve tested XML version and works fine. Only issue with XML was that I had to add header and  two wraping tags like this.<br />&#60;?xml version="1.0" encoding="UTF-8"?&#62;<br />&#60;roots&#62;<br />&#160;&#60;grid&#62;</p>
<p>Exported XML started directly with<br />&#160;	&#60;url&#62;translation_JSON.php?nd=1236733458890&#60;/url&#62;<br />&#160;	&#60;height&#62;100%&#60;/height&#62;<br />&#160;	&#60;page&#62;1&#60;/page&#62;<br />&#160;	&#60;rowNum&#62;100&#60;/rowNum&#62;<br />......</p>
<p>Any ideas?</p>
</p>
<p>Greetings</p>
<p>Majkel</p>
]]></description>
        	        	<pubDate>Wed, 11 Mar 2009 10:05:20 +0200</pubDate>
        </item>
</channel>
</rss>