<?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: Please help with asp.net webform</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/please-help-with-asp-net-webform</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/please-help-with-asp-net-webform/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Pavel on Please help with asp.net webform</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/please-help-with-asp-net-webform#p19085</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/please-help-with-asp-net-webform#p19085</guid>
        	        	<description><![CDATA[<p>Hello.</p>
<p>The problem is that I can not display the data in the jqGrid. Maybe I dodn&#39;t understand something or I&#39;m on wrong way of integration jqGrid into .net application.</p>
<p>If I change URL (url: &#39;data.xml&#39;,) to use XML file as data provider I can see data in the grid. Both files (data.xml and data.aspx) have the same response in the browser.</p>
</p>
<p>Aspx file with grid.</p>
<p>&#60;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridForm.aspx.cs" Inherits="VL.Apollo.WebForm1" %&#62;</p>
<p>...</p>
<p>&#160;&#160;&#160; &#60;table id="list1"&#62;&#60;/table&#62; <br />&#160;&#160;&#160; &#60;div id="pager1"&#62;&#60;/div&#62; <br />&#160;&#160; &#160;<br />&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery().ready(function (){ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list1").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;data.aspx&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "xml", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Name&#39;], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;, width:75}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name&#39;, width:100}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager1&#39;), <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption:"XML Example" }).navGrid(&#39;#pager1&#39;,{edit:false,add:false,del:false});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; &#60;/script&#62;</p>
<p>...</p>
</p>
<p>Aspx with data</p>
<p>&#60;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="data.aspx.cs" Inherits="VL.Apollo.WebForm2" %&#62;<br />&#60;?xml version =&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;<br />&#60;rows&#62;<br />&#160; &#60;page&#62;1&#60;/page&#62;<br />&#160; &#60;total&#62;1&#60;/total&#62;<br />&#160; &#60;records&#62;2&#60;/records&#62;<br />&#160; &#60;row id=&#39;1&#39;&#62;<br />&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62;<br />&#160;&#160;&#160; &#60;cell&#62;name1&#60;/cell&#62;<br />&#160; &#60;/row&#62;<br />&#160; &#60;row id=&#39;2&#39;&#62;<br />&#160;&#160;&#160; &#60;cell&#62;2&#60;/cell&#62;<br />&#160;&#160;&#160; &#60;cell&#62;name2&#60;/cell&#62;<br />&#160; &#60;/row&#62;<br />&#60;/rows&#62;</p>
]]></description>
        	        	<pubDate>Wed, 11 Aug 2010 17:12:46 +0300</pubDate>
        </item>
</channel>
</rss>