<?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: 2 Problem in 3.8 version</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version</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/2-problem-in-3-8-version/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ivanchain on 2 Problem in 3.8 version</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p21001</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p21001</guid>
        	        	<description><![CDATA[<p>any body here?</p>
</p>
<p>yours,</p>
<p>ivan</p>
]]></description>
        	        	<pubDate>Thu, 25 Nov 2010 17:28:40 +0200</pubDate>
        </item>
        <item>
        	<title>ivanchain on 2 Problem in 3.8 version</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p20829</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p20829</guid>
        	        	<description><![CDATA[<p>The 2nd problem?</p>
</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 16:02:09 +0200</pubDate>
        </item>
        <item>
        	<title>Kevin Bootz on 2 Problem in 3.8 version</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p20736</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p20736</guid>
        	        	<description><![CDATA[<blockquote>
<p>ivanchain said:</p>
<p>1. Can&#39;t update local data array to the jqgrid.</p>
<p>The doc said:</p>
<p>Data&#160;&#160; Array&#160;&#160;&#160; A array that store the local data passed to the grid. You can directly point to this variable in case you want to load a array data. It can replace addRowData method which is slow on relative big data.</p>
</p>
<p>But this only work at the init time of the jqgrid. After the jqgrid is created, I try below:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; var mydata = eval(evaluatingstr);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list3").clearGridData();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //jQuery("#list3").addRowData("rrid", mydata);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;jQuery("#list3").setGridParam({data:mydata});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list3").trigger("reloadGrid");</p>
<p>But nothing happend and no error is reported.</p>
<p>The data array is correct, because if I use the "jQuery("#list3").addRowData("rrid", mydata);", it will add the data into the jqgrid correctly. I have tried remove the "rrid" column(which&#160; refer to the row number id column) from the array, but still can&#39;t get the data into the jqgrid.</p>
</p>
<p>So that means we can&#39;t use the "data" option and "setGridParam+trigger"&#160;to update the jgrid?</p>
<p>By the way, the addRowData is very slow, I have only 20 records.</p>
</p>
<p>2. Can&#39;t control the position of the formatter check alert box.</p>
<p>If you set a formmater check on a column, and in the cell edting mode, when you enter a wrong value, it will show an alert box, but the box&#39;s position is NOT at the center of the screen, but at&#160; a strange place of the left top coner. that make the user to lost their working eye site&#160;place, a very bad experience.</p>
<p>yours,</p>
<p>Ivan</p>
<p>Have you found your issue? We&#39;ve begun to use 3.7.1 &#38; your post helped me as I was not using the clearGridData but once I plugged it in things went smoothly.</p>
</p>
<p>thanks</p>
</p>
<p>My implementation:</p>
</p>
<p>function adjustRecipients() {</p>
<p>&#160;&#160;&#160; var rowID = 0;<br />&#160;&#160;&#160; RecipientData.length = 0;<br />&#160;&#160;&#160; for (var i in SelectedRecipients) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; RecipientData[rowID] = SelectedRecipients[i];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowID++;<br />&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; $("#RecipientsTable").clearGridData();<br />&#160;&#160;&#160; $("#RecipientsTable").jqGrid(&#39;setGridParam&#39;, { data: RecipientData });<br />&#160;&#160;&#160; $("#RecipientsTable").trigger("reloadGrid");</p>
</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Wed, 10 Nov 2010 19:49:21 +0200</pubDate>
        </item>
        <item>
        	<title>ivanchain on 2 Problem in 3.8 version</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p20683</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/2-problem-in-3-8-version#p20683</guid>
        	        	<description><![CDATA[</p>
<p>1. Can&#39;t update local data array to the jqgrid.</p>
<p>The doc said:</p>
<p>Data&#160;&#160; Array&#160;&#160;&#160; A array that store the local data passed to the grid. You can directly point to this variable in case you want to load a array data. It can replace addRowData method which is slow on relative big data.</p>
</p>
<p>But this only work at the init time of the jqgrid. After the jqgrid is created, I try below:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; var mydata = eval(evaluatingstr);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list3").clearGridData();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //jQuery("#list3").addRowData("rrid", mydata);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;jQuery("#list3").setGridParam({data:mydata});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list3").trigger("reloadGrid");</p>
<p>But nothing happend and no error is reported.</p>
<p>The data array is correct, because if I use the "jQuery("#list3").addRowData("rrid", mydata);", it will add the data into the jqgrid correctly. I have tried remove the "rrid" column(which&#160; refer to the row number id column) from the array, but still can&#39;t get the data into the jqgrid.</p>
</p>
<p>So that means we can&#39;t use the "data" option and "setGridParam+trigger"&#160;to update the jgrid?</p>
<p>By the way, the addRowData is very slow, I have only 20 records.</p>
</p>
<p>2. Can&#39;t control the position of the formatter check alert box.</p>
<p>If you set a formmater check on a column, and in the cell edting mode, when you enter a wrong value, it will show an alert box, but the box&#39;s position is NOT at the center of the screen, but at&#160; a strange place of the left top coner. that make the user to lost their working eye site&#160;place, a very bad experience.</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Sat, 06 Nov 2010 14:51:06 +0200</pubDate>
        </item>
</channel>
</rss>