<?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: jqGrid generating an error with asp.net webserivice</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice</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/jqgrid-generating-an-error-with-asp-net-webserivice/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>saifmd4u on jqGrid generating an error with asp.net webserivice</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19393</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19393</guid>
        	        	<description><![CDATA[<p>Yes finally i have figured it out.... the issue was with the data... because the id column i have specified is not a unique column always first row is getting selected.</p>
</p>
<p>Now I have modified id column to be unique and its working fine now.</p>
]]></description>
        	        	<pubDate>Fri, 27 Aug 2010 21:33:11 +0300</pubDate>
        </item>
        <item>
        	<title>saifmd4u on jqGrid generating an error with asp.net webserivice</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19391</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19391</guid>
        	        	<description><![CDATA[<p>First and foremost thank you very much for the quick response.&#160;Now its working fine.</p>
</p>
<p>Except if I click on any of the row in the grid only first row is getting selected. Do i need to any changes for the script.</p>
</p>
<p>Actually i need to perform an ajax call when a row is selected. can you please help me.</p>
</p>
<p>Thanks</p>
<p>Saif</p>
]]></description>
        	        	<pubDate>Fri, 27 Aug 2010 20:49:33 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on jqGrid generating an error with asp.net webserivice</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19390</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19390</guid>
        	        	<description><![CDATA[<p>You need include <strong>jsonReader</strong> like following</p>
<p><strong>jsonReader: { root: "d.rows", page: "d.page", total: "d.total", records: "d.records" }</strong></p>
<p>as a jqGrid parameter. Additionally</p>
<p><strong>serializeGridData: function (postData) {</strong></p>
<p><strong>&#160;&#160; &#160;return JSON.stringify(postData);</strong></p>
<p><strong>}</strong></p>
<p>is also needed where JSON.stringify is from json2.js which you can download from <a href="http://www.json.org/js.html&#160;could" rel="nofollow" target="_blank">http://www.json.org/js.html&#160;could</a> help you.</p>
<p>Best regards<br />Oleg&#160;</p>
<p>P.S. Parameter imgpath should be removed as depricated since jqGrid 3.5 (see /jqgridwiki/doku.php?id=wiki:upgrade_from_3.4.x_to_3.5)</p></p>
]]></description>
        	        	<pubDate>Fri, 27 Aug 2010 20:17:50 +0300</pubDate>
        </item>
        <item>
        	<title>saifmd4u on jqGrid generating an error with asp.net webserivice</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19387</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-generating-an-error-with-asp-net-webserivice#p19387</guid>
        	        	<description><![CDATA[<p>The data gets returned successfully if i make a seperate &#160;$.ajax() call and assign to grid, but path included is displaying blank grid.</p>
</p>
<p>I have been struggling for a while :-&#160;</p>
<p>script :-</p>
<pre>jQuery("#list1").jqGrid({        
        datatype: "json",
        mtype: &#39;POST&#39;,
        ajaxGridOptions: { contentType: &#39;application/json; charset=utf-8&#39; },
        url: "SearchResults.asmx/Search",
       
        colNames: [&#39;From&#39;, &#39;To&#39;, &#39;Subject&#39;, &#39;Sent&#39;],
        colModel: [
        { name: &#39;from&#39;, index: &#39;from&#39;, align: &#39;left&#39; },
        { name: &#39;to&#39;, index: &#39;to&#39;, align: &#39;left&#39; },
        { name: &#39;subject&#39;, index: &#39;subject&#39;, align: &#39;left&#39; },
        { name: &#39;sent&#39;, index: &#39;sent&#39;, align: &#39;left&#39;, sorttype: "date"}],
        rowNum: 10,
        rowList: [5, 10, 20, 50],
        pager: &#39;#pager3&#39;,
        sortname: &#39;id&#39;,
        viewrecords: true,
        sortorder: "asc",
        loadonce: true,
        caption: &#39;Search Results&#39;,
        imgpath: &#39;../App_Themes/Orange/images&#39;,
        loadError : function(xhr,status,error){
            alert(&#39;error&#39;);
            alert(status);
            alert(error);
        },
        loadComplete: function (data) {
            alert(&#39;loaded&#39;);
            alert(data);
        }
        });</pre>
<p>c# code</p>
<pre> JQGridData gData = new JQGridData();
            gData.total = "1";
            gData.page = "1";
            gData.records = results.LongLength.ToString();
            gData.rows = new JQGridDataRow[results.LongLength];
            for (int i = 0; i &#60; results.LongLength; i++)
            {
                SearchResult sr = results[i] as SearchResult;
                gData.rows[i] = new JQGridDataRow();
                gData.rows[i].id = sr.From;
                gData.rows[i].cell = new string[4];
                gData.rows[i].cell[0] = sr.From;
                gData.rows[i].cell[1] = sr.ToNames;
                gData.rows[i].cell[2] = sr.Subject;
                gData.rows[i].cell[3] = sr.Sent.ToShortDateString();
            }

</pre>
<p>Can some help ?</p>
]]></description>
        	        	<pubDate>Fri, 27 Aug 2010 19:44:59 +0300</pubDate>
        </item>
</channel>
</rss>