<?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: JQGRID with JsonData using addJSONData ...need Help</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-jsondata-using-addjsondata-need-help</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/jqgrid-with-jsondata-using-addjsondata-need-help/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on JQGRID with JsonData using addJSONData ...need Help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-jsondata-using-addjsondata-need-help#p31259</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-jsondata-using-addjsondata-need-help#p31259</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>When jsonstring is set as datatype jqGrid expects the datastr parameter to be set as string.</p>
<p>addJsondata will not work in your case. Look in the docs for data manipulation.</p>
<p>Dynamically this can be achieved if you use setGridParam to set <strong>datastr </strong> and the reload the grid.</p>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 21 Oct 2014 17:26:36 +0300</pubDate>
        </item>
        <item>
        	<title>nskarthik on JQGRID with JsonData using addJSONData ...need Help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-jsondata-using-addjsondata-need-help#p31224</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-jsondata-using-addjsondata-need-help#p31224</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>as per the PDF provided</p>
<p><strong><span style="color: #800000">&#62;&#62;JSON data is handled in a fashion very similar to that of xml data. What is important is that the definition &#62;&#62; of the</span></strong><strong><span style="color: #800000"> jsonReader matches the data being received datatype: json, (or jsonstring)</span></strong></p>
<p>Some thing is wrong in here</p>
<p>var data = {<br />
 Â Â  Â Â Â  Â Â  "total": "1",<br />
 Â Â  Â Â Â  Â Â  "page": "1",<br />
 Â Â  Â Â Â  Â Â  "records": "2",<br />
 Â Â  Â Â Â  Â Â  "rows" : [<br />
 Â Â  Â Â Â  Â Â Â Â  {"id" :"1", "cell" :["cell11", "cell12", "cell13","cell13"]},<br />
 Â Â  Â Â Â  Â Â Â Â  {"id" :"2", "cell":["cell21", "cell22", "cell23","cell13"]},<br />
 Â Â  Â Â Â  Â Â  ]<br />
 Â Â  Â Â Â  Â };</p>
<p>Researched and found that changingÂ Â  datatype : "jsonstring",Â  TOÂ  datatype : "json",Â Â  <span style="text-decoration: underline">WORKED</span></p>
<p>I am pretty sure some bug has squeezed in some where...Â  <img class="spWPSmiley" style="max-height:1em;margin:0"  alt=":(" src="http://www.trirand.com/blog/wp-includes/images/smilies/icon_sad.gif" /></p>
<p>with regards<br />
Karthik</p>
]]></description>
        	        	<pubDate>Mon, 13 Oct 2014 17:02:31 +0300</pubDate>
        </item>
        <item>
        	<title>nskarthik on JQGRID with JsonData using addJSONData ...need Help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-jsondata-using-addjsondata-need-help#p31205</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-with-jsondata-using-addjsondata-need-help#p31205</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>Spec : JQGRID : 1.11.0 ,Â  JQuery :Â Â  2.1.0 , Browsers : FFOX :32.x,Â  JSON Frmt : Gson ( java ) , Java : 1.7 ,<br />
 AppServ : Tomcat 8</p>
<p>Note : I have studied the API docs , Googled /yahooed .... for the process .... but not staisfied answer  <img src="http://www.trirand.com/blog/wp-includes/images/smilies/icon_sad.gif" alt=":(" class="spWPSmiley" style="max-height:1em;margin:0"  /> </p>
<p>QuestionÂ Â  i have a JQGrid written down simple <span style="text-decoration: underline">(static col defined ) trying to insert Array Data dynamically Colmns</span> using JSON dataÂ  format</p>
<p>&#60;script type="text/javascript"&#62;<br />
jQuery(document).ready(function () {<br />
Â Â Â <br />
$("#list3").jqGrid({</p>
<p>colNames:['NO','IDNUM','PROTCL','DESC'],<br />
colModel:[<br />
{name:'NO',index:'true',width:'15',sortable:'true',align:'left',editable: true},<br />
{name:'IDNUM',index:'true',width:'15',sortable:'true',align:'left',editable: true},<br />
{name:'PROTCL',index:'true',width:'15',sortable:'true',align:'left',editable: true},<br />
{name:'DESC',index:'true',width:'50',sortable:'true',align:'left',editable: true}<br />
],<br />
url : "Dummy.jsp",<br />
hidegrid : false,<br />
datatype : "jsonstring",<br />
mtype : "GET",<br />
loadonce : "true",<br />
caption : "'Grid from Database using jsonstring'",<br />
shrinkToFit : true,<br />
autowidth : true,<br />
width : "1300",<br />
height : "125",<br />
rowNum : "10",<br />
rowList : [10,50,100],<br />
sortorder : "desc",<br />
viewrecords : true,<br />
gridview : true,<br />
autoencode : true,<br />
multiselect : false,<br />
loadtext : "Data-Organized",<br />
pagerÂ  : "table3",<br />
}).jqGrid('navGrid','#list3',{edit:true,add:true,del:true,search:true});</p>
<p>var data = {<br />
Â Â  Â Â Â  Â Â  "total": "1",<br />
Â Â  Â Â Â  Â Â  "page": "1",<br />
Â Â  Â Â Â  Â Â  "records": "2",<br />
Â Â  Â Â Â  Â Â  "rows" : [<br />
Â Â  Â Â Â  Â Â Â Â  {"id" :"1", "cell" :["cell11", "cell12", "cell13","cell13"]},<br />
Â Â  Â Â Â  Â Â Â Â  {"id" :"2", "cell":["cell21", "cell22", "cell23","cell13"]},<br />
Â Â  Â Â Â  Â Â  ]<br />
Â Â  Â Â Â  Â };<br />
Â Â  Â Â Â  Â <br />
$("#list3")[0].addJSONData(eval(data));<br />
Â })</p>
<p>&#60;/script&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;table border=1Â  id="list3" style="font-size:12px;"&#62;<br />
&#60;tr&#62;<br />
&#60;td&#62;&#60;/td&#62;<br />
&#60;/tr&#62;<br />
&#60;/table&#62;<br />
&#60;div id="&#60;%=sigid3%&#62;"&#62;&#60;/div&#62;<br />
&#60;/html&#62;</p>
<p> I do not see Data but empty Grid lines.....</p>
<p>Is the JSON Data provided is faulty ?<br />
Is usage of 'addJSONdata' not proper ?<br />
Is the code written above not correct ?</p>
<p>Ref : I need to Supply the Dynamic Data to Static Cols Defined ONLY and cannot change to any other jqGrid process.</p>
<p>Â </p>
<p>Plz somebody enlighten me with the mistake in the code.</p>
<p>Â </p>
<p>with regards<br />
karthik N.S</p>
]]></description>
        	        	<pubDate>Mon, 06 Oct 2014 19:56:19 +0300</pubDate>
        </item>
</channel>
</rss>