<?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 and ASPNet MVC</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1</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/discussion/jqgrid-and-aspnet-mvc-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>thatisscary on JQGrid and ASPNet MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p2119</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p2119</guid>
        	        	<description><![CDATA[</p>
<p>Actually, this is a known issue with Asp.net MVC, when you are using</p>
<p>a virtual directory.&#160;</p>
</p>
<p>However, using the Url.Action to generate the URL for the grid is sufficient.</p>
</p>
<p>It will append the application to the path, save this off into a string and</p>
<p>then apply the string to the url property of the grid.</p>
<p>&#60;%</p>
<p>string path = Url.Action("ActionName", "Controller");</p>
<p>%&#62;</p>
<p>&#60;script&#62;</p>
<p>var jqGridUrl = &#39;&#60;%=path%&#62;&#39;</p>
</p>
<p>url:jqGridUrl</p>
<p>The rendering engine gets upset when you try to evalue scripts in the jquery section, so just define it somewhere else and then use it.</p>
</p>
<p>Matthew</p>
]]></description>
        	        	<pubDate>Thu, 18 Sep 2008 20:39:35 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on JQGrid and ASPNet MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p2089</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p2089</guid>
        	        	<description><![CDATA[<p>Good question. Mvc will support any path you thorw at it as long as it&#39;s pattern is mapped in the route dictionary. For example in my case I have such a big Mvc app I decided to create sub-folders for my controllers. Remember, the Mvc routingengine abstracts the folder structure you have so you don&#39;t have to reveal your folder structure in your url. I have an Account folder with an AccountController, AccountSummaryController, etc. So my url would look like /Account/Account/GetMyDataById/101, but it doesn&#39;t, it only shows /Account/GetMyDataById/101.</p>
<p>If you do not specifcy the "/" in front of the Account in your url in your ajax call, the routing engine will prefix your url with the current url, so you will get something like <span style="color: #3366ff;">/Account/GetMyDataById/Account/GetMyDataById/101</span>. So make sure you prefix url with an "<span style="color: #ff0000;">/</span>" and include the controller: "<span style="color: #ff0000;">/Account/GetMyDataById</span>".</p>
<p>Just as an example my route map looks like this:</p>
<p><span style="color: #808080;">routes.MapRoute("Account", "Account/{action}/{accountId}",<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;&#160;&#160;&#160; new { controller = "Account", action = "Index", accountId = (string)null });</span></p>
<p>My editurl looks like this (includes account id, rows and page:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #808080;">editurl:&#39;/Account/SaveOrUpdateAccount?accountId=&#39;+$(&#39;fieldset#AccountDetails #Id&#39;).val()+&#39;&#38;rows=&#39;+$rows+&#39;&#38;page=1&#39;, </span></p></p>
]]></description>
        	        	<pubDate>Thu, 18 Sep 2008 07:28:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on JQGrid and ASPNet MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p1791</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p1791</guid>
        	        	<description><![CDATA[<p>Also if possible check the paths to js files. You need to ajust this</p>
<p>in the loader.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 29 Aug 2008 11:43:10 +0300</pubDate>
        </item>
        <item>
        	<title>son122 on JQGrid and ASPNet MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p1787</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p1787</guid>
        	        	<description><![CDATA[<p>I used the grid for ASP.NET MVC too.&#160; No longer though.</p>
<p>I&#39;m currently using castle monorail which is similar to that framework.</p>
<p>IIRC, you need to change your routing rules from the default to take that</p>
<p>into account.</p>
]]></description>
        	        	<pubDate>Fri, 29 Aug 2008 11:14:56 +0300</pubDate>
        </item>
        <item>
        	<title>nsorochan on JQGrid and ASPNet MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p1784</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/jqgrid-and-aspnet-mvc-1#p1784</guid>
        	        	<description><![CDATA[<p>I am having issues using JQGrid and MVC framework.&#160; IF I have an application with no application name everything works fine.&#160; For example, if my url is <a href="http://localhost/Home/Example" target="_blank">http://localhost/Home/Example</a>, everything is fine.</p>
<p>However, if my application has an application name <a href="http://localhost/myapp/Home/Example" target="_blank">http://localhost/myapp/Home/Example</a> the url does not work.&#160; It does not take into accout the application name.</p>
<p>I have tried many variations of the url, /Home/Example, /../Home/Example, ~/Home/Example.&#160; It does not see the application name.&#160; Are my routes incorrect?&#160; I am just using the default route when you created an MVC application.</p>
]]></description>
        	        	<pubDate>Fri, 29 Aug 2008 10:06:09 +0300</pubDate>
        </item>
</channel>
</rss>