<?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: how to use jqgrid with .net </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net</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/how-to-use-jqgrid-with-net/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cshan on how to use jqgrid with .net </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p6116</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p6116</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>&#160; If you had implemented the JQGrid with Asp.net (c#) can you pl. give the samples of both asp.net side and JQuery. I am newbie to JQuery and JQGrid, and find it hard to understand how the&#160; add, delete, search works. I undertstood from various forum responses that we need to use server side. I implemented a server side call to get all the records from database. But to update/edit, search and sort, do we still need to implement server side and provide separate url for each call.</p>
<p>&#160;&#160; Pl. help.</p>
]]></description>
        	        	<pubDate>Thu, 16 Apr 2009 10:57:50 +0300</pubDate>
        </item>
        <item>
        	<title>mcbaker on how to use jqgrid with .net </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p4513</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p4513</guid>
        	        	<description><![CDATA[<p>I would like to use jQuery Grid to display a list of current events which retrieved from a&#160;web service returning xml.&#160; Right now I am binding this to a grid view.&#160; I appreciate your example but have the following issues.</p>
<p>My xml doesn&#39;t contain the number of pages or number of records.&#160; Looking at your example, I coded this:</p>
<p>&#160;&#160;&#160; jQuery(document).ready(function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#tblOutages").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="&#39;Reporting.asmx/OutageReportXML&#39;" target="_blank">url:&#39;Reporting.asmx/OutageReportXML&#39;</a>,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype:&#39;xml&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width:&#39;850&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlReader:{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root:&#39;NewDataSet&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row:&#39;Table1&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: true&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Event Number&#39;,&#39;Description&#39;, &#39;Dispatch Group&#39;,&#39;Customers&#39;,&#39;Critical Customers&#39;,&#39;Feeder&#39;,&#39;Substation&#39;,&#39;Estimated Repair&#39;],<br />&#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; {name:&#39;EventNumber&#39;, index:&#39;EventNumber&#39;, width:55, sortable:true, xmlmap:"EventNumber"}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Description&#39;, index:&#39;Description&#39;, width:80, sortable:false, xmlmap:"Description"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;DispatchGroup&#39;, index:&#39;DispatchGroup&#39;, width:55, sortable:true, xmlmap:"DispatchGroup"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Customers&#39;, index:&#39;Customers&#39;, width:55, sortable:true, xmlmap:"Customers"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;CriticalCustomers&#39;, index:&#39;CriticalCustomers&#39;, width:55, sortable:true, xmlmap:"CriticalCustomers"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Feeder&#39;, index:&#39;Feeder&#39;, width:55, sortable:true, xmlmap:"Feeder"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Substation&#39;, index:&#39;Substation&#39;, width:55, sortable:true, xmlmap:"Substation"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;EstimatedRepair&#39;, index:&#39;EstimatedRepair&#39;, width:55, sortable:false, xmlmap:"EstimatedRepair"} ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager:jQuery(&#39;#pager&#39;),<br />&#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; rowList:[10,20,30],<br />&#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; imgpath:&#39;themes/green/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption:&#39;My first grid&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160; });</p>
<p>My page gives a error of "Object doesn&#39;t support this property or method"</p>
]]></description>
        	        	<pubDate>Sun, 08 Feb 2009 09:51:39 +0200</pubDate>
        </item>
        <item>
        	<title>geek on how to use jqgrid with .net </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p3916</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p3916</guid>
        	        	<description><![CDATA[<p>I know you can use it fairly easily by returning XML data.</p>
<p>The DataTable object has a method writeXML you can use to generate the XML very quickly.</p>
<p>You can use either PageMethods or create a web service with methods for exposing your data.</p>
<p>In my case, I have a web service that has multiple methods for providing data to my jqGrids.&#160; Here is an example:</p>
<p>&#160;[WebMethod(EnableSession = true)]<br />[ScriptMethod(UseHttpGet = true)]<br />public XmlDocument GetBranchHoldings()<br />{<br />&#160;XmlDocument xmlDoc = new XmlDocument();</p>
<p>&#160;if (HttpContext.Current.Request["id"] != null)<br />&#160;{<br />&#160;&#160;DataRow[] drHoldings = objScore.AccountHoldings.Select("guidBranch = &#39;" + &#160;&#160;HttpContext.Current.Request["id"].ToString() + "&#39;");<br />&#160;&#160;DataTable dtHoldings = objScore.AccountHoldings.Clone();</p>
<p>&#160;&#160;foreach (DataRow dr in drHoldings)<br />&#160;&#160;{<br />&#160;&#160;&#160;dtHoldings.ImportRow(dr);<br />&#160;&#160;}<br />&#160;&#160;StringWriter sw = new StringWriter();<br />&#160;&#160;dtHoldings.WriteXml(sw, false);<br />&#160;&#160;xmlDoc.LoadXml(sw.ToString());<br />&#160;}</p>
<p>&#160;return xmlDoc;<br />}</p>
</p>
<p>On the client side, you specify xml as the datatype and use an xmlReader to specify the root, etc. so jqGrid knows how to load data into your grid.&#160; Here is another example for the client side:</p>
<p>jQuery("#tblBuys").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: "Model.asmx/GetBranchSummary",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "xml",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; recordtext: "Branch(s)",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: "850",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "DocumentElement",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row: "Table1" ,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "DocumentElement&#62;currentpage",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "DocumentElement&#62;totalpages",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "DocumentElement&#62;totalrecords",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "guidBranch"&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Branch Name&#39;, &#39;MarketValue&#39;, &#39;Pct&#39;, &#39;Market Value&#39;, &#39;Pct&#39;, &#39;Pct&#39;, &#39;Pct&#39;, &#39;Market Value&#39;, &#39;Pct&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;BranchName&#39;,index:&#39;BranchName&#39;, width:160, sorttype:"string"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;CurrentMV&#39;,index:&#39;CurrentMV&#39;, width:80, align:"right",sortable:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;BranchActualWeight&#39;,index:&#39;BranchActualWeight&#39;, width:80, align:"right",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;TargetMV&#39;,index:&#39;TargetMV&#39;, width:80, align:"right",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;BranchTargetWeight&#39;,index:&#39;BranchTargetWeight&#39;, width:80, align:"right",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;BranchHighLimitWeight&#39;,index:&#39;BranchHighLimitWeight&#39;, width:80, align:"right",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;BranchLowLimitWeight&#39;,index:&#39;BranchLowLimitWeight&#39;, width:80, align:"right",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ProposedMV&#39;,index:&#39;ProposedMV&#39;, width:80, align:"right",sortable:false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;BranchProposedWeight&#39;,index:&#39;BranchProposedWeight&#39;, width:80, align:"right",sortable:false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: "<a href="http://myserver/mysite/app_themes/default/resources/gridimages" target="_blank">http://myserver/mysite/app_themes/default/resources/gridimages</a>",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery("#pgrBuys"),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[5,10,15],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords:true&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;Reply if you still have questions or are confused 🙂</p>
]]></description>
        	        	<pubDate>Fri, 09 Jan 2009 14:25:20 +0200</pubDate>
        </item>
        <item>
        	<title>tony on how to use jqgrid with .net </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p3911</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p3911</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you can provide the data described in docs you can use jqGrid.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 09 Jan 2009 08:36:19 +0200</pubDate>
        </item>
        <item>
        	<title>khatri on how to use jqgrid with .net </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p3902</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-jqgrid-with-net#p3902</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>I am populating datagrid using datatable, its a simple control of .net..</p>
<p>can i use jqgrid with datatable ...</p>
]]></description>
        	        	<pubDate>Thu, 08 Jan 2009 22:36:24 +0200</pubDate>
        </item>
</channel>
</rss>