<?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: Store table dataset in local variable</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/store-table-dataset-in-local-variable</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/store-table-dataset-in-local-variable/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Store table dataset in local variable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/store-table-dataset-in-local-variable#p8623</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/store-table-dataset-in-local-variable#p8623</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Check the parameters of afterInsertRow event - here you can store your data.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 15 Aug 2009 02:46:24 +0300</pubDate>
        </item>
        <item>
        	<title>andyn on Store table dataset in local variable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/store-table-dataset-in-local-variable#p8581</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/store-table-dataset-in-local-variable#p8581</guid>
        	        	<description><![CDATA[<p>&#160;Hi guys,</p>
<p>Is there a way to get the XML parsed data as an array of objects that I could use in different functions ? I mean I&#39;m assuming that jgrid has a parser for the XML data returned in a XML file, once this data is parsed I think it creates some type of local dataset to be used by the grid. I was thinking to have a function on the loadComplete or gridComplete events to get the data.</p>
<p>I&#39;ve looked everywhere documentation and forums and did some debugging but couldn&#39;t find a way to do it. I&#39;ve found a thread in the forum that makes me believe this works when you have&#160;a JSON data source, but not a XML one. In this post (<a href="http://www.trirand.com/blog/?page_id=393/help/Access%20JSON%20Data%20On%20Load%20Callback&#038;value=dataset%251&#038;search=1&#038;ret=all" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....38;ret=all</a>)&#160;it seems that a method called getReturnedDataItem&#160;would give me the data but it doesn&#39;t seem to work with my grid using a XML datasource</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9070' value='Select Code' data-codeid='sfcode9070' /></p>
<div class='sfcode' id='sfcode9070'>$("#list").getReturnedDataItem("rows")</div>
<p>my grid uses a XML datasource like this...</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3430' value='Select Code' data-codeid='sfcode3430' /></p>
<div class='sfcode' id='sfcode3430'>jQuery("#list").jqGrid({<br />url: &#39;Data/data1.xml&#39;,<br />datatype: &#39;xml&#39;,</div>
<p>I want to store the dataset in a variable locally so I can do some manipulations on the client side and bind the data again to the grid, that could be useful for something like a client-side filter without having to do several requests to the server.</p>
<p>Any ideas on how this can be accomplished</p>
<p>thanks,</p>
]]></description>
        	        	<pubDate>Fri, 14 Aug 2009 09:15:38 +0300</pubDate>
        </item>
</channel>
</rss>