<?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: Using jqGrid with Masterpages</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages</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/using-jqgrid-with-masterpages/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sara.rodriguez@cascade-earth.com on Using jqGrid with Masterpages</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27912</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27912</guid>
        	        	<description><![CDATA[<p>Tony -</p>
</p>
<p>Ok.&#160; So, I have the jqGrid working with the MasterPage as long as the webpage that uses the MasterPage are in the same location in my website file structure.&#160; The problem I have is when I put the jqGrid onto a webpage that is in a subfolder and uses the same MasterPage&#160;- then I get the "Microsoft JScript runtime errror: &#39;jQuery&#39; is undefined error".</p>
<p>Website file structure:</p>
<ul>
<li>App_Data folder</li>
<li>App_Themes folder - this has my css files</li>
<li>Bin folder - this has the Trirand.Web.dll file</li>
<li>Scripts folder - this has the js files</li>
<li>Users - the folders/webpages&#160;in this folder&#160;require a login to access, while the ones outside of this folder are considered "public" webpages
<ul>
<li>1000_Manager
<ul>
<li>Database.aspx <span style="color: #ff0000;">- jqGrid won&#39;t work on this page</span></li>
</ul>
</li>
</ul>
</li>
<li>Default.aspx - <span style="color: #0000ff;">jqGrid works on this page</span></li>
<li>MasterPage.master</li>
</ul>
<p>The css file works ok with a relative href so that it can apply in pages in side the folder structure:</p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"></span></span></span></p>
<p>&#60;</p>
</p>
<p><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">link</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">type</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="text/css"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">rel</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="stylesheet"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">href</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="~/App_Themes/jqGrid/ui.jqgrid.css"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">/&#62;</span></span></span></p>
<p>The js files, will not work at all if I use the "~/" to make the relateive file location:</p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"></p>
<p></span></p>
<p></span></p>
<p></span></p>
<p><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="color: #0000ff;">&#60;</span>script</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">type</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="text/javascript"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">src</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="Scripts/trirand/i18n/grid.locale-en.js"&#62;&#60;/</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">script</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#62;</span></span></span></p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"></p>
<p></span></p>
<p></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#60;</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">script</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">type</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="text/javascript"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">src</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="Scripts/trirand/jquery.jqGrid.min.js"&#62;&#60;/</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">script</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#62;<br />
</span></span></span></p>
<p>As I was typing this I asked myself, will I have any jqGrids in my "public" webpages or will they only be on the ones where a login is required.&#160; I don&#39;t forsee any jqGrids on the "public" pages.&#160; With that said, I just tested adding "../../" to the src&#39;s of the js files and... the jqGrids worked.</p>
<p><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="color: #0000ff;">&#60;</span>script</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">type</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="text/javascript"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">src</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="../../Scripts/trirand/i18n/grid.locale-en.js"&#62;&#60;/</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">script</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#62;</span></span></span></p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"></p>
<p></span></p>
<p></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#60;</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">script</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">type</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="text/javascript"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">src</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="../../Scripts/trirand/jquery.jqGrid.min.js"&#62;&#60;/</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">script</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#62;</span></span></span></p>
</p>
<p>Thanks for&#160;letting me "talk" this through.&#160; It is surprising&#160;how things become clear when trying to explain the problem&#160;you are having!&#160;</p></p>
]]></description>
        	        	<pubDate>Thu, 13 Dec 2012 02:41:56 +0200</pubDate>
        </item>
        <item>
        	<title>sara.rodriguez@cascade-earth.com on Using jqGrid with Masterpages</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27908</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27908</guid>
        	        	<description><![CDATA[<p>I throught I had everything loaded.&#160; I will re-check and let you know.&#160;</p>
]]></description>
        	        	<pubDate>Wed, 12 Dec 2012 17:40:17 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Using jqGrid with Masterpages</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27901</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27901</guid>
        	        	<description><![CDATA[<p>Hello Sara,</p>
</p>
<p>You maybe will need to publish your problem <a href="http://www.trirand.net/forum/default.aspx?g=forum" target="_blank">here</a></p>
<p>The error you have tell me that you do not have included the jQuery lib or the path to the lib is not correct.</p>
</p>
<p>Please follow <a href="http://www.trirand.net/documentation/aspnet/_2r10xy61t.htm" target="_blank">these instructions</a> in order to get idea what to do.</p>
<p>Also please visit the documentation pager <a href="http://www.trirand.net/documentation/aspnet/index.htm" target="_blank">here</a></p>
</p>
<p>Thank you</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 12 Dec 2012 13:22:52 +0200</pubDate>
        </item>
        <item>
        	<title>sara.rodriguez@cascade-earth.com on Using jqGrid with Masterpages</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27896</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-jqgrid-with-masterpages#p27896</guid>
        	        	<description><![CDATA[<p>Hi, I am new to jqGrid and have been able to setup a jqGrid that is what I am wanting in a blank webpage in Visual Studio.&#160; When I move that working jqGrid into my website where I am using a masterpage, I get the following error:</p>
</p>
<p>Microsoft JScript runtime errror: &#39;jQuery&#39; is undefined</p>
</p>
<p>Any assistance would be greatly appreciated.</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Wed, 12 Dec 2012 08:06:43 +0200</pubDate>
        </item>
</channel>
</rss>