<?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: Pager not working (for me). Where am I doing wrong?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong</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/pager-not-working-for-me-where-am-i-doing-wrong/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19321</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19321</guid>
        	        	<description><![CDATA[<p>OK I clear in other words.</p>
<ol>
<li>Every row of data should has unique ID. Either you can has a hidden row or declare the name of the ordinal number of id field. Then the id will be saved separately. Id is the only field which you have to send from the server together with the data which you really need to display.</li>
<li>You reseive the best results if you NOT send any unneeded data from the server. I see no sense to send data which will be hold in the didden columns, but not used.</li>
<li>If the data which you send will hve no properties (like "ID","Sigla","Name","Region"), but be an universal data type List&#60;string&#62; then you don&#39;t need any wrapper classes. You <strong>PagedList</strong> class can has <strong>List&#60;string&#62; rows</strong> property instead of <strong>IEnumerable rows</strong>.</li>
</ol>
<p>So you can convert data entity directly in the instance of the <strong>PagedList</strong> classes. Sometimes usage of anonymous data types can be helpful.</p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 23:14:41 +0300</pubDate>
        </item>
        <item>
        	<title>verorange on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19319</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19319</guid>
        	        	<description><![CDATA[<p>Ok for this!</p>
<p>But the meaning of my question was different. Suppose that I dont want to show the field ID and the field Region in the grid.</p>
<p>Do I have to code a wrapper class that dont send those fiedls or I can modify the config to not show them?</p></p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 21:58:45 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19317</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19317</guid>
        	        	<description><![CDATA[<p>In general the less data you send over the wire the better. So instead of array of strings like</p>
<p>{"ID":1,"Sigla":"AG","Name":"Agrigento","Region":"Sicilia"}</p>
<p>which are elements of rows array and every row represent an object jqGridRecord. It can be better</p>
<p>[1,"AG","Agrigento","Sicilia"]</p>
<p>as representation of List&#60;string&#62; or string[]. Then you can use more simple jsonReader (without <strong>repeatitems: false</strong>). It seems to me you can easy implement such data representation. A discussion about this and the coresponding example you can find here</p>
<p><a href="http://stackoverflow.com/questions/3054463/jqgrid-3-7-does-not-show-rows-in-internet-explorer/3061669#3061669" rel="nofollow" target="_blank">http://stackoverflow.com/questions/3054463/jqgrid-3-7-does-not-show-rows-in-internet-explorer/3061669#3061669</a></p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 21:36:16 +0300</pubDate>
        </item>
        <item>
        	<title>verorange on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19315</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19315</guid>
        	        	<description><![CDATA[<p>Finally we got through!!!! <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
<p>Now everything works fine and very very good!!!!</p>
</p>
<p>One more question Oleg: what if I have an entity with 10 fields but I want to show only a subset of them inside the jqGrid?</p>
<p>Do I have to code a wrapper class or can I configure jqGrid to show/hide the fields that I dont need?</p>
</p>
<p>Thanks again for the help you have given to me.</p>
</p>
<p>Regards</p>
<p>verorange<span style="white-space: pre;"> </span></p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 21:03:20 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19300</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19300</guid>
        	        	<description><![CDATA[<p>OK. Now I understand where you have the problem. You use Newtonsoft.Json to serialize the data, but your web service don&#39;t know this and try to serialize the data one more time. So you have probably twice serialized string. If the oririnal string was <strong>My string</strong>. JSON seirialized string will be <strong>"</strong><strong>My string</strong>". If the original string was <strong>"MyString"</strong> then serialized version will have escaped quotas: <strong>"MyString"</strong>. So after deserialization <strong></strong>of<strong></strong> a string you have allways the type string in Javascript instead of an object.</p>
<p>If you will just use standard Microsoft serialization you need only include</p>
<p>[WebMethod, ScriptMethod(ResponseFormat = ResponseFormat.Json)]</p>
<p>before the web method GetProvinces and return just an instance of the class JqGridData. Web service will serialize the data yourself, but include all data inside the property "d": {d:{..}}.</p>
<p>I uploaded a working test program which full simulate your first data under <a href="http://www.ok-soft-gmbh.com/jqGrid/WebServicesPostToJqGrid.zip" rel="nofollow" target="_blank">http://www.ok-soft-gmbh.com/jqGrid/WebServicesPostToJqGrid.zip</a>.</p>
<p>If you do need to use a custon JSON serialization like Newtonsoft.Json I should better use WCF instead of ASMX. The code is exactly so simple like ASMX, but you have much more flefibility. If your WCF web method return Stream or Message type, than you can return <strong>any</strong> type of data: any custom serialized JSON data, JPEG and so on. You can also stream the data if needed.</p>
<p>See <a href="http://msdn.microsoft.com/en-us/library/ms789010.aspx" rel="nofollow" target="_blank">http://msdn.microsoft.com/en-us/library/ms789010.aspx</a>, <a href="http://stackoverflow.com/questions/3078397/returning-raw-json-string-in-wcf/3079326#3079326" rel="nofollow" target="_blank">http://stackoverflow.com/questions/3078397/returning-raw-json-string-in-wcf/3079326#3079326</a> and <a href="http://stackoverflow.com/questions/3118504/how-to-set-json-net-as-the-default-serializer-for-wcf-rest-service/3131413#3131413" rel="nofollow" target="_blank">http://stackoverflow.com/questions/3118504/how-to-set-json-net-as-the-default-serializer-for-wcf-rest-service/3131413#3131413</a> for more information.</p>
<p>Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 16:27:36 +0300</pubDate>
        </item>
        <item>
        	<title>verorange on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19297</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19297</guid>
        	        	<description><![CDATA[<p>This is very strange. <img class="spSmiley" style="margin:0" title="Surprised" src="/blog/wp-content/forum-smileys/sf-surprised.gif" alt="Surprised" /></p>
<p>I have tried to change the mtype and the url properties and everything works as expected.</p>
<p>I have also tried to use a different version of the jsonReader as your example suggest but it&#160;</p>
<p>does&#39;nt work as well.</p>
</p>
<p>I think that you&#39;re right with the server side suspect. Let&#39;s see how it&#39;s made&#8230;</p>
<p>This is the RubricaWS.asmx source</p>
<p>&#60;%@ WebService Language="C#" CodeBehind="RubricaWS.cs" Class="RubricaWS" %&#62;</p>
</p>
<p>and this is the CodeBehind class (please note that it is not made for paging server side but</p>
<p>this is just a sample with the hope to adjust it later)</p>
</p>
<p>using System;</p>
<p>using System.Collections;</p>
<p>using System.Collections.Generic;</p>
<p>using System.Web;</p>
<p>using System.Web.Services;</p>
<p>using System.Web.Script.Services;</p>
</p>
<p>using Newtonsoft.Json;</p>
</p>
<p>[WebService(Namespace = "http://tempuri.org/")]</p>
<p>[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]</p>
<p>[ScriptService]</p>
<p>public class RubricaWS : System.Web.Services.WebService</p>
<p>{</p>
<p><span style="white-space:pre"> </span>[WebMethod]</p>
<p><span style="white-space:pre"> </span>[ScriptMethod]</p>
<p><span style="white-space:pre"> </span>public string GetProvinces()&#160;{</p>
<p><span style="white-space:pre"> </span>List&#60;jqGridRecord&#62; list = buildSampleData();</p>
<p><span style="white-space:pre"> </span>PagedList pl = new PagedList(list, list.Count, 1, 25);</p>
<p><span style="white-space:pre"> </span>return JsonConvert.SerializeObject(pl);</p>
<p><span style="white-space:pre"> </span>}</p>
</p>
<p><span style="white-space:pre"> </span>private List&#60;jqGridRecord&#62; buildSampleData()&#160;{</p>
<p><span style="white-space: pre;"> </span>List&#60;jqGridRecord&#62; list = new List&#60;jqGridRecord&#62;();</p>
<p><span style="white-space: pre;"> </span>for (int i = 0; i &#60; 120; i++)&#160;{</p>
<p><span style="white-space: pre;"> </span>jqGridRecord jq = new jqGridRecord()&#160;{</p>
<p><span style="white-space: pre;"> </span>ID = i,&#160;Sigla = "Sigla" + i,&#160;Name = "Name" + i,&#160;Region = "Regione" + i</p>
<p><span style="white-space: pre;"> </span>};</p>
<p><span style="white-space: pre;"> </span>list.Add(jq);</p>
<p><span style="white-space: pre;"> </span>}</p>
<p><span style="white-space: pre;"> </span>return list;</p>
<p><span style="white-space: pre;"> </span>}</p>
<p>}</p>
</p>
<p>class jqGridRecord</p>
<p>{</p>
<p><span style="white-space: pre;"> </span>public int ID { get; set; }</p>
<p><span style="white-space: pre;"> </span>public string Sigla { get; set; }</p>
<p><span style="white-space: pre;"> </span>public string Name { get; set; }</p>
<p><span style="white-space: pre;"> </span>public string Region { get; set; }</p>
<p>}</p>
</p>
<p>PagedList is an utility class that helps to format the data on the jqGrid format. This class was</p>
<p>present in the download sample where I started at the beginning.</p>
</p>
<p>using System;</p>
<p>using System.Collections;</p>
<p>using Newtonsoft.Json;</p>
</p>
<p>public class PagedList</p>
<p>{</p>
<p><span style="white-space: pre;"> </span>IEnumerable _rows;</p>
<p><span style="white-space: pre;"> </span>int _totalRecords;</p>
<p><span style="white-space: pre;"> </span>int _pageIndex;</p>
<p><span style="white-space: pre;"> </span>int _pageSize;</p>
<p><span style="white-space: pre;"> </span>object _userData;</p>
</p>
<p><span style="white-space: pre;"> </span>public PagedList(IEnumerable rows, int totalRecords, int pageIndex,</p>
<p><span style="white-space: pre;"> </span>int pageSize, object userData)&#160;{</p>
<p><span style="white-space: pre;"> </span>_rows = rows;</p>
<p><span style="white-space: pre;"> </span>_totalRecords = totalRecords;</p>
<p><span style="white-space: pre;"> </span>_pageIndex = pageIndex;</p>
<p><span style="white-space: pre;"> </span>_pageSize = pageSize;</p>
<p><span style="white-space: pre;"> </span>_userData = userData;</p>
<p><span style="white-space: pre;"> </span>}</p>
</p>
<p><span style="white-space: pre;"> </span>public PagedList(IEnumerable rows, int totalRecords, int pageIndex, int pageSize)&#160;</p>
<p><span style="white-space: pre;"> </span>: this(rows, totalRecords, pageIndex, pageSize, null)&#160;{</p>
<p><span style="white-space: pre;"> </span>}</p>
</p>
<p><span style="white-space: pre;"> </span>public int total {</p>
<p><span style="white-space: pre;"> </span>get { return (int)Math.Ceiling((decimal)_totalRecords / (decimal)_pageSize); }</p>
<p><span style="white-space: pre;"> </span>}</p>
</p>
<p><span style="white-space: pre;"> </span>public int page { get { return _pageIndex; } }</p>
<p>&#160;<span style="white-space: pre;"> </span>public int records { get { return _totalRecords; } }</p>
<p>&#160;<span style="white-space: pre;"> </span>public IEnumerable rows { get { return _rows; } }</p>
<p>&#160;<span style="white-space: pre;"> </span>public object userData { get { return _userData; } }</p>
</p>
<p><span style="white-space: pre;"> </span>public override string ToString()&#160;{</p>
<p><span style="white-space: pre;"> </span>return JsonConvert.SerializeObject(this);</p>
<p><span style="white-space: pre;"> </span>}</p>
<p>}</p>
</p>
<p>Thanks again for the help you&#39;re giving!</p>
<p>verorange</p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 15:19:05 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19295</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19295</guid>
        	        	<description><![CDATA[<p>I am sure, that your problem is on the server side. If I save the JSON data which you posted to a file <strong>verorange.txt</strong>, change <strong>mtype: "POST"</strong> to <strong>mtype: "GET"</strong> one can test the grid without any active server components. How you can see here&#160; <a href="http://www.ok-soft-gmbh.com/jqGrid/verorange.htm" rel="nofollow" target="_blank"><a href="http://www.ok-soft-gmbh.com/jq" rel="nofollow">http://www.ok-soft-gmbh.com/jq</a>.....orange.htm</a> the jqGrid works.</p>
<p>The url "/ws/RubricaWS.asmx/GetProvinces" look like you use ASMX web service on the server side. I don&#39;t know any method how you can remove {"d":{...}} from the JSON data returned from the service. If the data do have {"d":{...}} you should another version of the jsonReader (see my previous answer) and you&#39;ll receive the same results: <a href="http://www.ok-soft-gmbh.com/jqGrid/verorange1.htm" rel="nofollow" target="_blank"><a href="http://www.ok-soft-gmbh.com/jq" rel="nofollow">http://www.ok-soft-gmbh.com/jq</a>.....range1.htm</a></p>
<p>So verify one more time your server code or post the code of the web service here (which returns a test data without any access to the databese).</p>
<p>Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 13:46:29 +0300</pubDate>
        </item>
        <item>
        	<title>admin on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19293</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19293</guid>
        	        	<description><![CDATA[<p>Verorange, Oleg</p>
<p>Thanks.</p>
</p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 09:48:20 +0300</pubDate>
        </item>
        <item>
        	<title>verorange on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19292</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19292</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p><em><br /></em></p>
<p><em>&#62; OK I agree, that as I read till the end your post I forgot how you start the mail.</em></p>
<p><em> </em></p>
<p><em>&#62; So I forgot that you are beginner in jqGrid. Moreover it was 3:00 at night.</em></p>
</p>
<p><span style="color: #3366ff;">Ok. No problem for me.</span> &#160;<img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
</p>
<p><em>&#62; If your server really produce the JSON data like you wrote before you should</em></p>
<p><em> </em></p>
<p><em>&#62; change declaration of&#160;</em><strong><em>jsonReader</em></strong><em>&#160;to</em></p>
<p><em> </em></p>
<p><em>&#62; &#160; &#160; jsonReader: { repeatitems: false }</em></p>
</p>
<p><span style="color: #3366ff;">Ok. Done.&#160;</span></p>
<p><span style="color: #3366ff;">The data is exactly as posted in the first message. I have copied the data from</span></p>
<p><span style="color: #3366ff;">the Chrome window after having called directly the webservice.</span></p>
</p>
<p><em>&#62; and change declaration of ID column to</em></p>
<p><em> </em></p>
<p><em>&#62; &#160; &#160;{ name: &#39;ID&#39;, key: true, width: 60, align: &#39;center&#39;, hidden: false }</em></p>
<p><em> </em></p>
<p><em>&#62; (include&#160;</em><strong><em>key: true</em></strong><em>&#160;and replace&#160;</em><strong><em>center</em></strong><em>&#160;to&#160;</em><strong><em>&#39;center&#39;</em></strong><em>). Usage&#160;</em><strong><em>center</em></strong><em>&#160;instead</em></p>
<p><em> </em></p>
<p><em>&#62; of&#160;</em><strong><em>&#39;center&#39;&#160;</em></strong><em>is the main error in your last example. It follows to syntax error</em></p>
<p><em> </em></p>
<p><em>&#62; in your code and nothing were displayed.</em></p>
</p>
<p><span style="color: #3366ff;">Ok. Done.</span></p>
</p>
<p><em>&#62; If the JSON data are do inside of the {d:{&#8230;}} then&#160;</em><strong><em>jsonReader</em></strong><em>&#160;should be</em></p>
<p><em> </em></p>
<p><em>&#62;&#160;&#160; &#160;jsonReader: { repeatitems: false, root: "d.rows", page: "d.page",</em></p>
<p><em> </em></p>
<p><em>&#62; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;total: "d.total", records: "d.records" }</em></p>
</p>
<p><span style="color: #3366ff;">No. The data has no {d:{&#8230;}}&#160;</span></p>
</p>
<p><em>&#62; Moreover you should verify, that you loaded json2.js and include in your project</em></p>
<p><em> </em></p>
<p><em>&#62; from&#160;</em><a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://www.json.org/js.html&#39;);" href="http://www.json.org/js.html" target="_blank"><em>&#160;</em></a><em><a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://www.json.org/js.html&#39;);" rel="nofollow" href="http://www.json.org/js.html" target="_blank">http://www.json.org/js.html</a></em><em>&#160;to be able to use&#160;</em><strong><em>JSON.stringify</em></strong><em>. I hope after</em></p>
<p><em> </em></p>
<p><em>&#62; this changes you code will work.</em></p>
</p>
<p><span style="color: #3366ff;">I have followed your advice until this and here I have realized that I was not including&#160;</span></p>
<p><span style="color: #3366ff;">this script. I have done a test before including the script and after including it. The result&#160;</span></p>
<p><span style="color: #3366ff;">is exactly the same. The web service get called, the grid is visible on the page but with&#160;</span></p>
<p><span style="color: #3366ff;">no data!!!</span>&#160;<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
</p>
<p><em>&#62; I recomended you to use simple serializeGridData and ajaxGridOptions and jsonReader</em></p>
<p><em> </em></p>
<p><em>&#62; instead of the usage of datatype as function because it allow jqGrid work exactly like it</em></p>
<p><em> </em></p>
<p><em>&#62; is designed. We maks only small correction how the data will be encrypted if there will</em></p>
<p><em> </em></p>
<p><em>&#62; be send to the server and how will be decoded the servers respond.</em></p>
</p>
<p><span style="color: #3366ff;">I have no problem on using jqGrid this way. I started downloading a sample and that</span></p>
<p><span style="color: #3366ff;">sample was using datatype as function. Let&#39;s go on this way, it&#39;s ok.</span></p>
<p><span style="color: #3366ff;"><br /></span></p>
<p><span style="color: #3366ff;">Regards</span></p>
<p><span style="color: #3366ff;">verorange</span></p>
</p>
<p><span style="color: #3366ff;">Note: this is the ciient script adjusted with your advices</span></p>
<p>&#60;script type="text/javascript"&#62;</p>
<p>$(function() {</p>
<p>$("#contactsList").jqGrid({</p>
<p>url: &#39;&#60;%= ResolveClientUrl("~/ws/RubricaWS.asmx/GetProvinces") %&#62;&#39;,</p>
<p>datatype: "json",</p>
<p>mtype: &#39;POST&#39;,</p>
<p>ajaxGridOptions: {</p>
<p>contentType: &#39;application/json; charset=utf-8&#39;</p>
<p>},</p>
<p>serializeGridData: function(postData) {</p>
<p>return JSON.stringify(postData);</p>
<p>},</p>
<p>jsonReader: { repeatitems: false },</p>
<p>height: 230,</p>
<p>colNames: [&#39;Id&#39;, &#39;Sigla&#39;, &#39;Nome&#39;, &#39;Regione&#39;],</p>
<p>colModel: [</p>
<p>{ name: &#39;ID&#39;, key: true, width: 60, align: &#39;center&#39;, hidden: false },</p>
<p>{ name: &#39;Sigla&#39;, width: 80, sortable: false, hidden: false },</p>
<p>{ name: &#39;Name&#39;, width: 180, sortable: false, hidden: false },</p>
<p>{ name: &#39;Region&#39;, width: 180, sortable: false, hidden: false }</p>
<p>],</p>
<p>imgpath: &#39;&#60;%= ResolveClientUrl("~/media/css/redmond/images") %&#62;&#39;,</p>
<p>rowNum: 25,</p>
<p>rowList: [25, 50, 100],</p>
<p>pager: &#39;#gridpager&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>rownumbers: true,</p>
<p>caption: "Lista province"</p>
<p>}).jqGrid(&#39;navGrid&#39;, &#39;#gridpager&#39;, { edit: true, add: true, del: false, search: true });</p>
<p>});</p>
<p>&#60;/script&#62;</p>
<p><span style="color: #3366ff;"><br /></span></p>
]]></description>
        	        	<pubDate>Wed, 25 Aug 2010 05:19:40 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19287</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19287</guid>
        	        	<description><![CDATA[<p>OK I agree, that as I read till the end your post I forgot how you start the mail. So I forgot that you are beginner in jqGrid. Moreover it was 3:00 at night.</p>
<p>If your server really produce the JSON data like you wrote before you should change declaration of <strong>jsonReader</strong> to</p>
<p>&#160;&#160;&#160; jsonReader: { repeatitems: false }</p>
<p>and change declaration of ID column to</p>
<p>&#160;&#160;&#160; { name: &#39;ID&#39;, key: true, width: 60, align: &#39;center&#39;, hidden: false }</p>
<p>(include <strong>key: true</strong> and replace <strong>center</strong> to <strong>&#39;center&#39;</strong>). Usage <strong>center</strong> instead of <strong>&#39;center&#39; </strong>is the main error in your last example. It follows to syntax error in your code and nothing were displayed.</p>
<p>If the JSON data are do inside of the {d:{&#8230;}} then <strong>jsonReader</strong> should be</p>
<p>&#160;&#160;&#160; jsonReader: { repeatitems: false, root: "d.rows", page: "d.page", total: "d.total", records: "d.records" }</p>
<p>Moreover you should verify, that you loaded json2.js and include in your project from <a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://www.json.org/js.html&#39;);" href="http://www.json.org/js.html" target="_blank">http://www.json.org/js.html</a> to be able to use <strong>JSON.stringify</strong>. I hope after this changes you code will work.</p>
<p>After the example will work you should implement the data paging and data sorting on the server side. The prototype of you WebMethod should be like</p>
<p>&#160;&#160;&#160; public JqGridData GetProvinces (int page, int rows, string sidx, string sord)</p>
<p>where JqGridData represent the data (you have one class alteady which is OK). Based on the value of <strong>page</strong> and <strong>rows</strong>. The <strong>page</strong> is the requested page number (1 based) and the <strong>rows</strong> is the number of rows per page. If user click on the next page button or switched from 10 to 20 rows per page the jqGrid will send a new request to web service to fill grid with new data.</p>
<p>If you want that client part (jqGrid) makes data sorting and paging include <strong>loadonce: true</strong> in your grid definition.</p>
<p>I recomended you to use simple serializeGridData and ajaxGridOptions and jsonReader instead of the usage of datatype as function because it allow jqGrid work exactly like it is designed. We maks only small correction how the data will be encrypted if there will be send to the server and how will be decoded the servers respond.</p>
<p>If you do want follow the way with datatype as function look at <a href="http://stackoverflow.com/questions/2413032/jqgrid-with-asp-net-webmethod-and-json-working-with-sorting-paging-searching-an" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....arching-an</a>.</p>
<p>Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Tue, 24 Aug 2010 23:36:45 +0300</pubDate>
        </item>
        <item>
        	<title>admin on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19284</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19284</guid>
        	        	<description><![CDATA[<p>Dear verorange,</p>
<p>Dear OlegK,</p>
<p>Please let the dispute go in professional skills and not on personal one.<br /> I know that sometime this go out from control, but I hope that this is<br /> a temporary.<br /> We actually have this forum to help each other and not&#160; make confrontations.</p>
<p> I appreciate a handshake to each other and I&#39;m the first which do this to both one (handshake)<br /> I hope that you follow me.</p>
<p> Best Regards</p>
<p> TriRand Administartor</p>
]]></description>
        	        	<pubDate>Tue, 24 Aug 2010 22:32:47 +0300</pubDate>
        </item>
        <item>
        	<title>verorange on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19280</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19280</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p>I don&#39;t like if sombody be not polite to me. Jokes like "You should ask somewhere else if you want help&#8230;" I find not funny.</p>
<p>Your code not works because it has errors (at least 2). Good luck in searching of errors. Bye bye.</p>
<p>Oleg</p>
</blockquote>
<hr />
<p>Hello Oleg,</p>
<p>You say that I have not been polite with you&#8230;.. I dont believe that you&#39;re right</p>
<p>and invite you to read again your first answer to see if you have been polite with me.</p>
<p>I have clearly stated in my first post that it was my first usage of the jqGrid package</p>
<p>and I have asked why the pager did not worked correctly. Your answer has told me:&#160;</p>
<ul>
<li>to change "datatype"</li>
<li>to add "mtype"</li>
<li>to use "ajaxGridOptions"</li>
<li>to use additional parameters and "serializeGridData"</li>
<li>how to support simple and advanced searching</li>
<li>to add the "key: true" parameter or include jsonReader</li>
</ul>
<p>But nothing that would instead really help me to find a solution to the problem.&#160;</p>
<p>And I am the one not polite?&#160;</p>
<p>Dont be worry! In this world there are many people much more educated than you and,</p>
<p>especially, available to help others.</p>
</p>
<p>regards</p>
<p>verorange</p>
]]></description>
        	        	<pubDate>Tue, 24 Aug 2010 20:27:13 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19277</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19277</guid>
        	        	<description><![CDATA[<p>I don&#39;t like if sombody be not polite to me. Jokes like "You should ask somewhere else if you want help&#8230;" I find not funny.</p>
<p>Your code not works because it has errors (at least 2). Good luck in searching of errors. Bye bye.</p>
<p>Oleg</p>
]]></description>
        	        	<pubDate>Tue, 24 Aug 2010 18:21:27 +0300</pubDate>
        </item>
        <item>
        	<title>verorange on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19272</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19272</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p>I don&#39;t understand why you use datatype as function to load JSON data? jqGrid has already support for JSON data. You should just use <strong>datatype: "json"</strong>&#160;parameter of jqGrid (<span style="text-decoration: underline;"><strong>not</strong></span> data<strong><span style="text-decoration: underline;">T</span></strong>ype: "json") and <strong>mtype: "POST"</strong>. To have<strong> contentType: "application/json; charset=utf-8"</strong> in the corresponding ajax request you should include <strong>ajaxGridOptions: { contentType: "application/json" }</strong> parameter of the jqGrid.</p>
<p>jqGrid will send to the server additional parameters <strong>int page, int rows, string sidx, string sord, bool _search</strong>. You have to define <strong>all</strong> the parameters and use <strong>serializeGridData</strong> with <strong>JSON.stringify</strong> to serialize the data.</p>
<p>To support simple searching you should include also <strong>string searchField, string searchOper, string searchString</strong> in the method prototype. To support advanced searching you should include <strong>string filters</strong> instead.</p>
<p>Having all this parameters your server can gives back the correct page of data asked by jqGrid (corresponds to <strong>page, rows</strong>&#160;parameters). The data you will sort also on the server corresponds to<strong>&#160;sidx, sord</strong>.</p>
<p>A code example you can find in my old answer on the stackoverflow:&#160;<a href="http://stackoverflow.com/questions/3161302/jqgrid-page-1-of-x-pager/3161542#3161542&#160;and" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....2&#160;and</a> <a href="http://stackoverflow.com/questions/2835957/jquery-with-asp-net-mvc-calling-ajax-enabled-web-service/2836817#2836817" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....17#2836817</a>.</p>
<p>Because you post currently "ID" instead of "id" in the JSON data you will be required either define <strong>key: true</strong> parameter for the &#39;ID&#39; column or include <strong>jsonReader { id: "ID"}</strong> as an additional parameter of jqGrid.</p>
<p>Best regards<br />Oleg&#160;</p>
</blockquote>
<hr />
<p>I am sorry but I cannot answer your question. I have just started using jqGrid from some example code found on the internet. I wrote here to ask for help.&#160;You should ask somewhere else if you want help...</p>
<p>Anyway... I have followed some of yoiur advices present in the first stack overflow link (there&#39;s no way for me to access the second one) and now the code does not work anymore..... the grid does not appear as well....</p>
</p>
<p>The HTML has not been changed. Same for server code. I have only changed some of the client code. The first problem is that doing this way the webservice is never called (I have tried setting a breakpoint in code)</p>
<p>$("#contactsList").jqGrid({</p>
<p>url: &#39;&#60;%= ResolveClientUrl("~/ws/RubricaWS.asmx/GetProvinces") %&#62;&#39;,</p>
<p>datatype: "json",</p>
<p>mtype: &#39;POST&#39;,</p>
<p>loadonce: true,</p>
<p>ajaxGridOptions: { contentType: &#39;application/json; charset=utf-8&#39; },</p>
<p>serializeGridData: function(postData) {</p>
<p>return JSON.stringify(postData);</p>
<p>},</p>
<p>jsonReader: {</p>
<p>root: function(obj) { return obj.rows; },</p>
<p>page: function(obj) { return obj.page; },</p>
<p>total: function(obj) { return obj.total; },</p>
<p>records: function(obj) { return obj.records; }</p>
<p>},</p>
<p>height: 230,</p>
<p>colNames: [&#39;Id&#39;, &#39;Sigla&#39;, &#39;Nome&#39;, &#39;Regione&#39;],</p>
<p>colModel: [</p>
<p>{ name: &#39;ID&#39;, width: 60, align: center, hidden: false },</p>
<p>{ name: &#39;Sigla&#39;, width: 80, sortable: false, hidden: false },</p>
<p>{ name: &#39;Name&#39;, width: 180, sortable: false, hidden: false },</p>
<p>{ name: &#39;Region&#39;, width: 180, sortable: false, hidden: false }</p>
<p>],</p>
<p>imgpath: &#39;&#60;%= ResolveClientUrl("~/media/css/redmond/images") %&#62;&#39;,</p>
<p>rowNum: 10,</p>
<p>rowList: [25, 50, 100],</p>
<p>pager: &#39;#gridpager&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>rownumbers: true,</p>
<p>caption: "Lista province"</p>
<p>}).jqGrid(&#39;navGrid&#39;, &#39;#gridpager&#39;, {edit:true, add:true, del:false, search:true});</p>
<p>});</p>
</p>
<p>If you want to give some help I am very grateful.... thanks! <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
]]></description>
        	        	<pubDate>Tue, 24 Aug 2010 13:47:21 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19262</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19262</guid>
        	        	<description><![CDATA[<p>I don&#39;t understand why you use datatype as function to load JSON data? jqGrid has already support for JSON data. You should just use <strong>datatype: "json"</strong>&#160;parameter of jqGrid (<span style="text-decoration: underline;"><strong>not</strong></span> data<strong><span style="text-decoration: underline;">T</span></strong>ype: "json") and <strong>mtype: "POST"</strong>. To have<strong> contentType: "application/json; charset=utf-8"</strong> in the corresponding ajax request you should include <strong>ajaxGridOptions: { contentType: "application/json" }</strong> parameter of the jqGrid.</p>
<p>jqGrid will send to the server additional parameters <strong>int page, int rows, string sidx, string sord, bool _search</strong>. You have to define <strong>all</strong> the parameters and use <strong>serializeGridData</strong> with <strong>JSON.stringify</strong> to serialize the data.</p>
<p>To support simple searching you should include also <strong>string searchField, string searchOper, string searchString</strong> in the method prototype. To support advanced searching you should include <strong>string filters</strong> instead.</p>
<p>Having all this parameters your server can gives back the correct page of data asked by jqGrid (corresponds to <strong>page, rows</strong>&#160;parameters). The data you will sort also on the server corresponds to<strong>&#160;sidx, sord</strong>.</p>
<p>A code example you can find in my old answer on the stackoverflow:&#160;<a href="http://stackoverflow.com/questions/3161302/jqgrid-page-1-of-x-pager/3161542#3161542&#160;and" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....2&#160;and</a> <a href="http://stackoverflow.com/questions/2835957/jquery-with-asp-net-mvc-calling-ajax-enabled-web-service/2836817#2836817" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....17#2836817</a>.</p>
<p>Because you post currently "ID" instead of "id" in the JSON data you will be required either define <strong>key: true</strong> parameter for the &#39;ID&#39; column or include <strong>jsonReader { id: "ID"}</strong> as an additional parameter of jqGrid.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 24 Aug 2010 03:59:37 +0300</pubDate>
        </item>
        <item>
        	<title>verorange on Pager not working (for me). Where am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19257</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong#p19257</guid>
        	        	<description><![CDATA[<p>Hello all,&#160;</p>
<p>I am working with asp.net. I have done my first jqGrid and I am not able to make the pager works...</p>
<p>As you can see in the following image the records are displayed corectly except for the pager that show them all together and not in pages of 25 as I have specified.</p>
<p><a href="http://img214.imageshack.us/img214/3330/jqgrid.png"><img src="http://img214.imageshack.us/img214/3330/jqgrid.png" width="100"  class="sfimageleft spUserImage" alt="image" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
</p>
<p>This is my HTML:</p>
<p style="padding-left: 30px; ">&#60;div id="jqgrid"&#62;</p>
<p style="padding-left: 60px; ">&#60;table id="contactsList"&#62;&#60;/table&#62;</p>
<p style="padding-left: 60px; ">&#60;div id="gridpager"&#62;&#60;/div&#62;</p>
<p style="padding-left: 30px; ">&#60;/div&#62;</p>
<p>This is the script block:</p>
<p style="padding-left: 30px;">&#60;script type="text/javascript"&#62;</p>
<p style="padding-left: 30px;">$(function () {</p>
<p style="padding-left: 60px;">$("#contactsList").jqGrid({</p>
<p style="padding-left: 90px;">datatype: function (pdata) { getData(pdata); },</p>
<p style="padding-left: 90px;">height: 230,</p>
<p style="padding-left: 90px;">colNames: [&#39;ID&#39;, &#39;Sigla&#39;, &#39;Nome Provincia&#39;, &#39;Regione&#39;],</p>
<p style="padding-left: 90px;">colModel: [</p>
<p style="padding-left: 120px;">{ name: &#39;ID&#39;, width: 60, sortable: false },</p>
<p style="padding-left: 120px;">{ name: &#39;Sigla&#39;, width: 80, sortable: false },</p>
<p style="padding-left: 120px;">{ name: &#39;Name&#39;, width: 180, sortable: false },</p>
<p style="padding-left: 120px;">{ name: &#39;Region&#39;, width: 180, sortable: false }</p>
<p style="padding-left: 90px;">],</p>
<p style="padding-left: 90px;">imgpath: &#39;&#60;%= ResolveClientUrl("~/media/css/redmond/images") %&#62;&#39;,</p>
<p style="padding-left: 90px;">pager : &#39;#gridpager&#39;,</p>
<p style="padding-left: 90px;">rowList:[25,50,100],</p>
<p style="padding-left: 90px;">viewrecords: true,</p>
<p style="padding-left: 90px;">caption: "Lista province"</p>
<p style="padding-left: 60px;">}).navGrid("#gridpager",{});</p>
<p style="padding-left: 30px;">});</p>
<p style="padding-left: 30px;">function getData(pData) {</p>
<p style="padding-left: 60px;">$.ajax({</p>
<p style="padding-left: 90px;">type: &#39;POST&#39;,</p>
<p style="padding-left: 90px;">contentType: "application/json; charset=utf-8",</p>
<p style="padding-left: 90px;">url: &#39;&#60;%= ResolveClientUrl("~/ws/RubricaWS.asmx/GetProvinces") %&#62;&#39;,</p>
<p style="padding-left: 90px;">data: &#39;{}&#39;,</p>
<p style="padding-left: 90px;">dataType: "json",</p>
<p style="padding-left: 90px;">success: function (data, textStatus) {</p>
<p style="padding-left: 120px;">if (textStatus == "success") {</p>
<p style="padding-left: 150px;">ReceivedClientData(JSON.parse(getMain(data)).rows);</p>
<p style="padding-left: 120px;">}</p>
<p style="padding-left: 90px;">},</p>
<p style="padding-left: 90px;">error: function (data, textStatus) {</p>
<p style="padding-left: 120px;">alert(&#39;An error has occured retrieving data!&#39;);</p>
<p style="padding-left: 90px;">}</p>
<p style="padding-left: 60px;">});</p>
<p style="padding-left: 30px;">}</p>
<p style="padding-left: 30px;">function ReceivedClientData(data) {</p>
<p style="padding-left: 60px;">var thegrid = $("#contactsList");</p>
<p style="padding-left: 60px;">thegrid.clearGridData();</p>
<p style="padding-left: 60px;">for (var i = 0; i &#60; data.length; i++)&#160;{</p>
<p style="padding-left: 90px;">thegrid.addRowData(i + 1, data[i]);</p>
<p style="padding-left: 60px;">}</p>
<p style="padding-left: 30px;">}</p>
<p style="padding-left: 30px;">function getMain(dObj) {</p>
<p style="padding-left: 60px;">if (dObj.hasOwnProperty(&#39;d&#39;))</p>
<p style="padding-left: 90px;">return dObj.d;</p>
<p style="padding-left: 60px;">else</p>
<p style="padding-left: 90px;">return dObj;</p>
<p style="padding-left: 30px;">}</p>
<p style="padding-left: 30px;">&#160;&#60;/script&#62;</p>
</p>
<p>And this is the json data returned from the web service</p>
<p>{"total":5,"page":1,"records":107,"rows":[{"ID":1,"Sigla":"AG","Name":"Agrigento","Region":"Sicilia"},{"ID":2,"Sigla":"AL","Name":"Alessandria","Region":"Piemonte"},{"ID":3,"Sigla":"AN","Name":"Ancona","Region":"Lombardia"},{"ID":4,"Sigla":"AO","Name":"Aosta","Region":"Valle d&#39;Aosta"},{"ID":5,"Sigla":"AR","Name":"Arezzo","Region":"Toscana"},{"ID":6,"Sigla":"AP","Name":"Ascoli Piceno","Region":"Lombardia"},{"ID":7,"Sigla":"AT","Name":"Asti","Region":"Piemonte"},{"ID":8,"Sigla":"AV","Name":"Avellino","Region":"Campania"},{"ID":9,"Sigla":"BA","Name":"Bari","Region":"Puglia"},{"ID":10,"Sigla":"BL","Name":"Belluno","Region":"Veneto"},{"ID":11,"Sigla":"BN","Name":"Benevento","Region":"Campania"},{"ID":12,"Sigla":"BG","Name":"Bergamo","Region":"Lombardia"},{"ID":13,"Sigla":"BI","Name":"Biella","Region":"Piemonte"},{"ID":14,"Sigla":"BO","Name":"Bologna","Region":"Emilia Romagna"},{"ID":15,"Sigla":"BZ","Name":"Bolzano","Region":"Trentino Alto Adige"},{"ID":16,"Sigla":"BS","Name":"Brescia","Region":"Lombardia"},{"ID":17,"Sigla":"BR","Name":"Brindisi","Region":"Puglia"},{"ID":18,"Sigla":"CA","Name":"Cagliari","Region":"Sardegna"},{"ID":19,"Sigla":"CL","Name":"Caltanissetta","Region":"Sicilia"},{"ID":20,"Sigla":"CB","Name":"Campobasso","Region":"Molise"},{"ID":21,"Sigla":"CI","Name":"Carbonia-Iglesias","Region":"Sardegna"},{"ID":22,"Sigla":"CE","Name":"Caserta","Region":"Campania"},{"ID":23,"Sigla":"CT","Name":"Catania","Region":"Sicilia"},{"ID":24,"Sigla":"CZ","Name":"Catanzaro","Region":"Calabria"},{"ID":25,"Sigla":"CH","Name":"Chieti","Region":"Abruzzo"},{"ID":26,"Sigla":"CO","Name":"Como","Region":"Lombardia"},{"ID":27,"Sigla":"CS","Name":"Cosenza","Region":"Calabria"},{"ID":28,"Sigla":"CR","Name":"Cremona","Region":"Lombardia"},{"ID":29,"Sigla":"KR","Name":"Crotone","Region":"Calabria"},{"ID":30,"Sigla":"CN","Name":"Cuneo","Region":"Piemonte"},{"ID":31,"Sigla":"EN","Name":"Enna","Region":"Sicilia"},{"ID":32,"Sigla":"FE","Name":"Ferrara","Region":"Emilia Romagna"},{"ID":33,"Sigla":"FI","Name":"Firenze","Region":"Toscana"},{"ID":34,"Sigla":"FG","Name":"Foggia","Region":"Puglia"},{"ID":35,"Sigla":"FC","Name":"Forli-Cesena","Region":"Emilia Romagna"},{"ID":36,"Sigla":"FR","Name":"Frosinone","Region":"Lazio"},{"ID":37,"Sigla":"GE","Name":"Genova","Region":"Liguria"},{"ID":38,"Sigla":"GO","Name":"Gorizia","Region":"Friuli Venezia Giulia"},{"ID":39,"Sigla":"GR","Name":"Grosseto","Region":"Toscana"},{"ID":40,"Sigla":"IM","Name":"Imperia","Region":"Liguria"},{"ID":41,"Sigla":"IS","Name":"Isernia","Region":"Molise"},{"ID":42,"Sigla":"SP","Name":"La Spezia","Region":"Liguria"},{"ID":43,"Sigla":"AQ","Name":"L&#39;Aquila","Region":"Abruzzo"},{"ID":44,"Sigla":"LT","Name":"Latina","Region":"Lazio"},{"ID":45,"Sigla":"LE","Name":"Lecce","Region":"Puglia"},{"ID":46,"Sigla":"LC","Name":"Lecco","Region":"Lombardia"},{"ID":47,"Sigla":"LI","Name":"Livorno","Region":"Toscana"},{"ID":48,"Sigla":"LO","Name":"Lodi","Region":"Lombardia"},{"ID":49,"Sigla":"LU","Name":"Lucca","Region":"Toscana"},{"ID":50,"Sigla":"MC","Name":"Macerata","Region":"Lombardia"},{"ID":51,"Sigla":"MN","Name":"Mantova","Region":"Lombardia"},{"ID":52,"Sigla":"MS","Name":"Massa-Carrara","Region":"Toscana"},{"ID":53,"Sigla":"MT","Name":"Matera","Region":"Basilicata"},{"ID":54,"Sigla":"ME","Name":"Messina","Region":"Sicilia"},{"ID":55,"Sigla":"MI","Name":"Milano","Region":"Lombardia"},{"ID":56,"Sigla":"MO","Name":"Modena","Region":"Emilia Romagna"},{"ID":57,"Sigla":"NA","Name":"Napoli","Region":"Campania"},{"ID":58,"Sigla":"NO","Name":"Novara","Region":"Piemonte"},{"ID":59,"Sigla":"NU","Name":"Nuoro","Region":"Sardegna"},{"ID":60,"Sigla":"OT","Name":"Olbia-Tempio","Region":"Sardegna"},{"ID":61,"Sigla":"OR","Name":"Oristano","Region":"Sardegna"},{"ID":62,"Sigla":"PD","Name":"Padova","Region":"Veneto"},{"ID":63,"Sigla":"PA","Name":"Palermo","Region":"Sicilia"},{"ID":64,"Sigla":"PR","Name":"Parma","Region":"Emilia Romagna"},{"ID":65,"Sigla":"PV","Name":"Pavia","Region":"Lombardia"},{"ID":66,"Sigla":"PG","Name":"Perugia","Region":"Umbria"},{"ID":67,"Sigla":"PU","Name":"Pesaro e Urbino","Region":"Lombardia"},{"ID":68,"Sigla":"PE","Name":"Pescara","Region":"Abruzzo"},{"ID":69,"Sigla":"PC","Name":"Piacenza","Region":"Emilia Romagna"},{"ID":70,"Sigla":"PI","Name":"Pisa","Region":"Toscana"},{"ID":71,"Sigla":"PT","Name":"Pistoia","Region":"Toscana"},{"ID":72,"Sigla":"PN","Name":"Pordenone","Region":"Friuli Venezia Giulia"},{"ID":73,"Sigla":"PZ","Name":"Potenza","Region":"Basilicata"},{"ID":74,"Sigla":"PO","Name":"Prato","Region":"Toscana"},{"ID":75,"Sigla":"RG","Name":"Ragusa","Region":"Sicilia"},{"ID":76,"Sigla":"RA","Name":"Ravenna","Region":"Emilia Romagna"},{"ID":77,"Sigla":"RC","Name":"Reggio Calabria","Region":"Calabria"},{"ID":78,"Sigla":"RE","Name":"Reggio Emilia","Region":"Emilia Romagna"},{"ID":79,"Sigla":"RI","Name":"Rieti","Region":"Lazio"},{"ID":80,"Sigla":"RN","Name":"Rimini","Region":"Emilia Romagna"},{"ID":81,"Sigla":"RM","Name":"Roma","Region":"Lazio"},{"ID":82,"Sigla":"RO","Name":"Rovigo","Region":"Veneto"},{"ID":83,"Sigla":"SA","Name":"Salerno","Region":"Campania"},{"ID":84,"Sigla":"VS","Name":"Medio Campidano","Region":"Sardegna"},{"ID":85,"Sigla":"SS","Name":"Sassari","Region":"Sardegna"},{"ID":86,"Sigla":"SV","Name":"Savona","Region":"Liguria"},{"ID":87,"Sigla":"SI","Name":"Siena","Region":"Toscana"},{"ID":88,"Sigla":"SR","Name":"Siracusa","Region":"Sicilia"},{"ID":89,"Sigla":"SO","Name":"Sondrio","Region":"Lombardia"},{"ID":90,"Sigla":"TA","Name":"Taranto","Region":"Puglia"},{"ID":91,"Sigla":"TE","Name":"Teramo","Region":"Abruzzo"},{"ID":92,"Sigla":"TR","Name":"Terni","Region":"Umbria"},{"ID":93,"Sigla":"TO","Name":"Torino","Region":"Piemonte"},{"ID":94,"Sigla":"OG","Name":"Ogliastra","Region":"Sardegna"},{"ID":95,"Sigla":"TP","Name":"Trapani","Region":"Sicilia"},{"ID":96,"Sigla":"TN","Name":"Trento","Region":"Trentino Alto Adige"},{"ID":97,"Sigla":"TV","Name":"Treviso","Region":"Veneto"},{"ID":98,"Sigla":"TS","Name":"Trieste","Region":"Friuli Venezia Giulia"},{"ID":99,"Sigla":"UD","Name":"Udine","Region":"Friuli Venezia Giulia"},{"ID":100,"Sigla":"VA","Name":"Varese","Region":"Lombardia"},{"ID":101,"Sigla":"VE","Name":"Venezia","Region":"Veneto"},{"ID":102,"Sigla":"VB","Name":"Verbano-Cusio-Ossola","Region":"Piemonte"},{"ID":103,"Sigla":"VC","Name":"Vercelli","Region":"Piemonte"},{"ID":104,"Sigla":"VR","Name":"Verona","Region":"Veneto"},{"ID":105,"Sigla":"VV","Name":"Vibo Valentia","Region":"Calabria"},{"ID":106,"Sigla":"VI","Name":"Vicenza","Region":"Veneto"},{"ID":107,"Sigla":"VT","Name":"Viterbo","Region":"Lazio"}],"userData":null}</p>
</p>
<p>Any suggestion? <img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
<p>Thanks a lot</p>
<p>verorange</p></p>
]]></description>
        	        	<pubDate>Tue, 24 Aug 2010 00:01:57 +0300</pubDate>
        </item>
</channel>
</rss>