<?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: adding a parameter to pass to asp.net mvc controller</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/adding-a-parameter-to-pass-to-asp-net-mvc-controller</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/adding-a-parameter-to-pass-to-asp-net-mvc-controller/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>twaldron on adding a parameter to pass to asp.net mvc controller</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-a-parameter-to-pass-to-asp-net-mvc-controller#p15842</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-a-parameter-to-pass-to-asp-net-mvc-controller#p15842</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p>Hello twaldron,</p>
</p>
<p>if you really want to have date as a parameter of your conctoller, then you need at least modify url parameter of the jqGrid from</p>
<p>"DealerServices/JsonScheduledSpas/" to some with the date inside of url. Then you need add coresponding template in you MVC application which difines from which part of url the date should be fiiled.</p>
</p>
<p>Best regards</p>
<p>Oleg</p>
</blockquote>
<hr />
<p>Right, thats exactly what I am asking. How do I do that?</p>
]]></description>
        	        	<pubDate>Fri, 19 Mar 2010 17:20:24 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on adding a parameter to pass to asp.net mvc controller</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-a-parameter-to-pass-to-asp-net-mvc-controller#p15827</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-a-parameter-to-pass-to-asp-net-mvc-controller#p15827</guid>
        	        	<description><![CDATA[<p>Hello twaldron,</p>
</p>
<p>if you really want to have date as a parameter of your conctoller, then you need at least modify url parameter of the jqGrid from</p>
<p>"DealerServices/JsonScheduledSpas/" to some with the date inside of url. Then you need add coresponding template in you MVC application which difines from which part of url the date should be fiiled.</p>
</p>
<p>Best regards</p>
<p>Oleg</p>
]]></description>
        	        	<pubDate>Fri, 19 Mar 2010 02:20:09 +0200</pubDate>
        </item>
        <item>
        	<title>twaldron on adding a parameter to pass to asp.net mvc controller</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-a-parameter-to-pass-to-asp-net-mvc-controller#p15824</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-a-parameter-to-pass-to-asp-net-mvc-controller#p15824</guid>
        	        	<description><![CDATA[<p>I have this a controller&#160; like this</p>
<p><input type='button' class='sfcodeselect' name='sfselectit456' value='Select Code' data-codeid='sfcode456' /></p>
<div class='sfcode' id='sfcode456'>
<p>&#160; public ActionResut GetJsonData(DateTime date, string sidx, string sord, int page, int rows)</p>
<p>{</p>
<p>....</p>
<p>}</p>
</p>
</div>
<p>how do I pass that date parameter to the controller from jqgrid?</p>
</p>
<p>here is my jqgrid</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1098' value='Select Code' data-codeid='sfcode1098' /></p>
<div class='sfcode' id='sfcode1098'>
<p>&#60;script type=&#34;text/javascript&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id = Date.parse(&#39;today&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#34;#ScheduledList&#34;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;DealerServices/JsonScheduledSpas/&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Invoice&#39;, &#39;Company&#39;, &#39;Contact&#39;, &#39;Model&#39;, &#39;Customer&#39;, &#39;DSR&#39;],<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160; { name: &#39;invoice&#39;, index: &#39;invoice&#39;, width: 50, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;company&#39;, index: &#39;company&#39;, width: 200, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;companyContactNumber&#39;, index: &#39;companyContactNumber&#39;, width: 100, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;descript&#39;, index: &#39;descript&#39;, width: 60, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;CustomerName&#39;, index: &#39;CustomerName&#39;, width: 130, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;DsrFirstName&#39;, index: &#39;DsrFirstName&#39;, width: 70, align: &#39;left&#39; }<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#Scheduledpager&#39;),<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; rowList: [5, 10, 20, 50],<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; sortorder: &#34;desc&#34;,<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; imgpath: &#39;../../../../Content/CSS/startTheme/Images/&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;250px&#39;<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; }); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/script&#62;</p>
</div>
<p>How do I get that date variable passed to the controller?</p>
<p>[code]</p>
]]></description>
        	        	<pubDate>Thu, 18 Mar 2010 23:38:09 +0200</pubDate>
        </item>
</channel>
</rss>