<?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: Jsonstring with self-defined "records" or "total"</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total</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/feature-request/jsonstring-with-self-defined-records-or-total/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Jsonstring with self-defined "records" or "total"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19193</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19193</guid>
        	        	<description><![CDATA[<p>Hi Taker!</p>
<p>The datatype "jsonstring" is a form of holding of the local data in jqGrid where you load <strong>all</strong> the data in once. So having the number of records or the number of pages which not corresponds the data from the JSON string has no&#160;sense. If you want use data paging for example, you should use "json" data type.</p>
<p>It seems to me it would be better if you post a code example where you show in which situation you have the problem which you describe. Then one could change your code so, that the problem no more exist.</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 18 Aug 2010 16:01:47 +0300</pubDate>
        </item>
        <item>
        	<title>Taker on Jsonstring with self-defined "records" or "total"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19190</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19190</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>yes, but then comes this:</p>
</p>
<p>...................................................................................</p>
<p>drows = $.jgrid.getAccessor(data,dReader.root);</p>
<p>if (drows) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;len = drows.length; i=0;</p>
<p>.....................</p>
<p>if(locdata) {<br />&#160;&#160; ts.p.records = len;<br />&#160;&#160; ts.p.lastpage = Math.ceil(len/ rn);<br />}</p>
<p>....................................................................................</p>
</p>
<p>ts.p.records is the length of drows, and not what I have defined in dReader.records.</p>
</p>
<p>Do you know, what i mean?</p>
</p>
<p>Kind regards</p>
<div dir="ltr">
<div id="tts_button" class=" " title="&#220;bersetzung anh&#246;ren">
<object id="tts_flash" width="18" height="18" type="application/x-shockwave-flash" data="http://www.gstatic.com/translate/sound_player2.swf"><param name="movie" value="http://www.gstatic.com/translate/sound_player2.swf" /><param name="flashvars" value="sound_name=&#38;sound_name_cb=_TTSSoundFile" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /></object>
</div>
</div>
<div dir="ltr"></div>
]]></description>
        	        	<pubDate>Wed, 18 Aug 2010 10:50:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Jsonstring with self-defined "records" or "total"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19180</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19180</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Not sure what you mean. locdata just determine that the localdata arry should be filled in order to be used into the future.</p>
<p>Just few rows bellow we have</p>
</p>
<p><strong>addJSONData = function(data,t, rcnt, more, adjust) {</strong></p>
<p>........................</p>
<p>&#160;&#160;&#160; locdata = (ts.p.datatype != "local" &#38;&#38; ts.p.loadonce) &#124;&#124; ts.p.datatype == "jsonstring";</p>
<p>..................</p>
<p>&#160;&#160;&#160; ts.p.page = $.jgrid.getAccessor(data,dReader.page) &#124;&#124; 0;<br /><strong>&#160;&#160; &#160; lp = $.jgrid.getAccessor(data,dReader.total);<br /></strong>&#160;&#160;&#160; ts.p.lastpage = lp === undefined ? 1 : lp;<br /><strong>&#160;&#160;&#160; ts.p.records = $.jgrid.getAccessor(data,dReader.records) &#124;&#124; 0;</strong></p>
<p>....</p>
<p>}</p>
</p>
<p>Kind regards</p>
]]></description>
        	        	<pubDate>Tue, 17 Aug 2010 23:39:25 +0300</pubDate>
        </item>
        <item>
        	<title>Taker on Jsonstring with self-defined "records" or "total"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19004</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p19004</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Both will treated different.</p>
<p>Jsonstring will treated as local data.</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; locdata = (ts.p.datatype != "local" &#38;&#38; ts.p.loadonce) &#124;&#124; ts.p.datatype == "jsonstring";</p>
</p>
<p>"Total" und "records" have no influence in jsonstring.</p>
<p>Could you add an option, that allows this?</p>
]]></description>
        	        	<pubDate>Fri, 06 Aug 2010 12:32:17 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Jsonstring with self-defined "records" or "total"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p18973</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p18973</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Why do you think so? Do you try to define page and totals in json string?</p>
<p>Just for your info there is no difference in jsonstring and JSON response in jqGrid - the are treated the same way.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 05 Aug 2010 08:41:53 +0300</pubDate>
        </item>
        <item>
        	<title>Taker on Jsonstring with self-defined "records" or "total"</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p18910</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/jsonstring-with-self-defined-records-or-total#p18910</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>In XML and JSON for example, i can define "records" or "total", but not at jsonstring.</p>
<p>Here&#160; jqgrid calculated it.</p>
<p>Could you modify jqgrid yet?</p>
]]></description>
        	        	<pubDate>Mon, 02 Aug 2010 14:57:41 +0300</pubDate>
        </item>
</channel>
</rss>