<?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: Grid Data reload</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload</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/grid-data-reload/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3309</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3309</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Try this <strong>GridUnload</strong> and not <span class="objectBox objectBox-errorMessage hasBreakSwitch">jGridunload </span></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 27 Nov 2008 03:26:52 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3296</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3296</guid>
        	        	<description><![CDATA[]]></description>
        	        	<pubDate>Wed, 26 Nov 2008 07:42:16 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3295</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3295</guid>
        	        	<description><![CDATA[<p>Or, shall I have to add something like:</p>
<p><script type="text/javascript" src="grid.custom.js"></script></p>
<p>after those lines that loads jQuery.jqGrid.js, jqModal.js, jqDnR.js?</p>
]]></description>
        	        	<pubDate>Wed, 26 Nov 2008 07:40:56 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3218</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3218</guid>
        	        	<description><![CDATA[<p>Uh? Isn&#39;t the Gridunload function included in the grid.custom.js loaded by the jqGridInclude() function?</p>
<p>In fact in that file I have this row enabled:</p>
<p>{ include: true, incfile:&#39;grid.custom.js&#39;,minfile: &#39;min/grid.custom-min.js&#39;}, //jqGrid custom</p>
<p>Plus I did a search word in all .js files and looks like only that file contains the Gridunload() function....</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 01:15:04 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3215</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3215</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can not use GridUnload if you do not load the needed files for this</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 01:06:47 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3207</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3207</guid>
        	        	<description><![CDATA[<p>Hello maraki and Tony...</p>
<p>I&#39;m trying to use the Gridunload function before to create the grid, I have set to true inside function jqGridInclude() to have availability of advanced functions of the grid with grid.custom.js but once the Gridunload() fires it says to me:</p>
<p><span class="objectBox objectBox-errorMessage hasBreakSwitch">jQuery("#list").Gridunload is not a function</span></p>
<p>why?....</p>
<p>I loaded those scripts:</p>
<p>wp_enqueue_script(&#39;jq1&#39;, get_bloginfo(&#39;wpurl&#39;) . &#39;/wp-content/plugins/toscanoviaggi/js/jquery.jqGrid.js&#39;, array(&#39;jquery&#39;));<br />wp_enqueue_script(&#39;jq2&#39;, get_bloginfo(&#39;wpurl&#39;) . &#39;/wp-content/plugins/toscanoviaggi/js/jqModal.js&#39;, array(&#39;jquery&#39;));<br />wp_enqueue_script(&#39;jq3&#39;, get_bloginfo(&#39;wpurl&#39;) . &#39;/wp-content/plugins/toscanoviaggi/js/jqDnR.js&#39;, array(&#39;jquery&#39;));</p>
<p>which they should be ok.... maybe I missed something? or some library to load?...</p>
<p>Thanks!</p>
<p>Ciao</p>
<p>Luigi</p>
]]></description>
        	        	<pubDate>Sun, 23 Nov 2008 11:13:04 +0200</pubDate>
        </item>
        <item>
        	<title>maraki on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3011</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3011</guid>
        	        	<description><![CDATA[<p>Dear Tony I found the solution</p>
<p>Just before I create the grid I use</p>
<p>JQuery("mygrid").Gridunload();</p>
<p>and everything works fine thank you for your help</p>
]]></description>
        	        	<pubDate>Tue, 11 Nov 2008 03:40:36 +0200</pubDate>
        </item>
        <item>
        	<title>maraki on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3010</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3010</guid>
        	        	<description><![CDATA[<p>Thank you Tony for your help!</p>
<p>Unfortunately it still gives me error.</p>
<p>I can&#39;t make it work so I think I am not going to use it.</p>
<p>I don&#39;t now where to put</p>
<p>$(&#8221;#tabledata1&#8243;).setGridParam({datatype:&#39;local&#39;}).</p>
<p>trigger(&#8221;reloadGrid&#8221;); in my code.</p>
<p>Thank you for everything!</p>
]]></description>
        	        	<pubDate>Tue, 11 Nov 2008 02:17:50 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3000</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p3000</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Create the grid before calling this function and set datatype : &#39;local&#39; and all will be OK</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2008 09:24:43 +0200</pubDate>
        </item>
        <item>
        	<title>maraki on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2999</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2999</guid>
        	        	<description><![CDATA[<p>Sorry,</p>
</p>
<p>I get a message for javascript error :</p>
<p>object doesn&#39;t support this property or methos.</p>
<p>I guess this is caused by</p>
<p>$(&#8221;#tabledata1&#8243;).setGridParam({datatype:&#39;xmlstring&#39;,datastr:mystr}).</p>
<p>triggrer(&#8221;reloadGrid&#8221;);</p>
<p>because only when I add it to my page I get the error.</p>
<p>Is there some other way to empty the grid each time i puss the button and then fill it?</p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2008 09:17:45 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2998</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2998</guid>
        	        	<description><![CDATA[<p>Sorry</p>
<p>Have not that this should be updated</p>
<p>function doUpdatedata(){</p>
<p>var mystr = xmlDocdata.toString();</p>
<p>$(&#8221;#tabledata1&#8243;).setGridParam({datatype:&#39;xmlstring&#39;,datastr:mystr}).</p>
<p>trigger(&#8221;reloadGrid&#8221;);</p>
<p>}</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2008 09:09:00 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2997</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2997</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>function doUpdatedata(){</p>
<p>&#8230;.</p>
<p>var mystr = xmlDocdata.toString();</p>
<p>$(&#8221;#tabledata1&#8243;).jqGrid({&#160;&#160;&#160; <br /><a href="/%27life_proposalstep1.aspx%27" target="_blank"></a>datatype: &#39;xmlstring&#39;,<br />datastr: mystr,</p>
<p>&#8230;</p>
<p>})</p>
<p>} //END OF function</p>
</p>
<p>See my note about ajax requests</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2008 09:05:43 +0200</pubDate>
        </item>
        <item>
        	<title>maraki on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2996</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2996</guid>
        	        	<description><![CDATA[<p>function doUpdatedata()<br />{ <br />if(xmlHttpdata.readyState==4)<br />{ <br />if (xmlHttpdata.status == 200) {</p>
<p>var xmlDocdata =xmlHttpdata.responseXML.xml;<br />var newmystr = xmlDocdata.toString();<br />var mystr = xmlDocdata.toString();</p>
<p>//mystr is my xml string</p>
<p>Here I construct the grid........</p>
<p>}}</p>
<p>I posted above all my code...</p></p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2008 08:26:09 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2993</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2993</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Post the code where you obtain the xml string from the service.</p>
<p>REMEMBER - You should first obtain the xml string, ensure that they is present and after that you can CONSTRUCT the grid.</p>
<p>See more about the ajax request - they are delayed and it is unknown</p>
<p>which is first finished.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2008 07:40:17 +0200</pubDate>
        </item>
        <item>
        	<title>maraki on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2986</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2986</guid>
        	        	<description><![CDATA[<p>Thank you Tony,</p>
<p>Please see my code below. Where should I reload the grid?</p>
<p>var xmlHttpdata;<br />function getMessagedata()<br />{<br />//in this panel I have the &#60;table id="tabledata1" class="scroll"&#62;&#60;/table&#62;<br />document.getElementById("PanelTable1").style.display = "inline";<br />var persontxt = document.getElementById("txtasf").value;<br />if(window.ActiveXObject)<br />{<br />xmlHttpdata=new ActiveXObject("Microsoft.XMLHTTP");<br />} <br />else if (window.XmlHttpRequest)<br />{</p>
<p>xmlHttpdata=new XMLHttpRequest();<br />} <br />//call my WebService<br />xmlHttpdata.open("get", "http://......?txtname=" + persontxt + "",true); <br />xmlHttpdata.onreadystatechange=doUpdatedata; <br />xmlHttpdata.send(); return false; <br />} <br />function doUpdatedata()<br />{ <br />if(xmlHttpdata.readyState==4)<br />{ <br />if (xmlHttpdata.status == 200) {<br />//document.getElementById("lblHTMLOutput").innerHTML = ""; <br />var xmlDocdata =xmlHttpdata.responseXML.xml;<br />var newmystr = xmlDocdata.toString();<br />var mystr = xmlDocdata.toString();<br />//alert(mystr);</p>
<p>$(document).ready(function(){<br />$("#tabledata1").jqGrid({&#160;&#160;&#160; <br /><a href="&#39;life_proposalstep1.aspx&#39;" target="_blank">url:&#39;life_proposalstep1.aspx&#39;</a>,<br />datatype: &#39;xmlstring&#39;,<br />datastr: mystr,<br />&#160;&#160;&#160;&#160;&#160; colNames:[&#39;kok&#39;,&#39;aaa&#39;,&#39;bbb&#39;,&#39;fff&#39;,&#39;ddd&#39;,&#39;eee&#39;,&#39;uuu&#39;],<br />&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"ID",index:"ID", width:50, xmlmap:"ID",sorttype:&#39;int&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"ALNAME",index:"ALNAME", width:400, xmlmap:"ALNAME",sorttype:&#39;text&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"AFM",index:"AFM", width:100, xmlmap:"AFM",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"ABDAY",index:"ABDAY", width:100, xmlmap:"ABDAY",sortable:false,hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"ASEX",index:"ASEX", width:100, xmlmap:"ASEX",sortable:false,hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"AFNAME",index:"AFNAME", width:100, xmlmap:"AFNAME",sortable:false,hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"AFATHER",index:"AFATHER", width:100, xmlmap:"AFATHER",sortable:false}<br />&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160; height:210,<br />&#160;&#160;&#160;&#160; imgpath: &#39;themes/sand/images&#39;,<br />&#160;&#160;&#160;&#160; sortname: &#39;ID&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160; loadonce: true,<br />&#160;&#160;&#160;&#160; xmlReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root : "NewDataSet",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row: "Table",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false<br />&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160; onSelectRow: function(rowid) {<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; var sr = jQuery(&#39;#tabledata1&#39;).getGridParam(&#39;selrow&#39;);<br />&#160;&#160;&#160; rowdata = jQuery(&#39;#tabledata1&#39;).getRowData(sr);<br />&#160;&#160;&#160; alert(rowdata.ID);&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; //Some other actions......<br />&#160;&#160;&#160; }<br />&#160; <br />});<br />});<br />} <br />}<br />}</p>
</p>
<p>I call the javascript on the ClientClick event of an image button.</p>
</p>
<p>Any help would be appreciated.</p>
<p>Thank you</p>
]]></description>
        	        	<pubDate>Mon, 10 Nov 2008 06:47:56 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2978</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2978</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>When using xmlstring the data after that is automatically set to local,</p>
<p>so you can not use the pager.</p>
<p>So to work this before reloading the grid do this</p>
<p>jQuery("mygrid").setGridParam({datatype:"xmlstring"}).trigger("reloadGrid");</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 07 Nov 2008 09:51:41 +0200</pubDate>
        </item>
        <item>
        	<title>maraki on Grid Data reload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2972</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-data-reload#p2972</guid>
        	        	<description><![CDATA[<p>Hello. JQGrid i amazing but I have a problem.</p>
<p>I downloaded version 3.3 and I call a webservice from javascript and fill the grid using xmlstring.</p>
<p>The webservide takes a value from a textbox and returns data which I display in the grid.</p>
<p>I have all these inside an update panel.</p>
<p>The problem is that when I put the grid inside the update panel it dissapears.And if I disable postback of update panel the xmlstring doesn&#39;t get refreshed.I change the value of the textbox my webservice returns a new xml but the grid doesn&#39;t reloads.</p>
<p>I used the reloadGrid but it doesn&#39;t work.Also the pager doesn&#39;t work.</p>
<p>Maybe I miss some files, I don&#39;t know. Any advice?</p></p>
]]></description>
        	        	<pubDate>Fri, 07 Nov 2008 06:03:38 +0200</pubDate>
        </item>
</channel>
</rss>