<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stephen Lacy &#187; JQuery</title>
	<atom:link href="http://www.lacy.ie/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lacy.ie</link>
	<description>Impressions as an ASP.Net Developer</description>
	<lastBuildDate>Mon, 05 Jul 2010 09:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery Context Menu appears off screen issue</title>
		<link>http://www.lacy.ie/jquery-context-menu-appears-off-screen-issue</link>
		<comments>http://www.lacy.ie/jquery-context-menu-appears-off-screen-issue#comments</comments>
		<pubDate>Tue, 18 May 2010 10:41:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.lacy.ie/?p=286</guid>
		<description><![CDATA[jQuery Context Menu is available here: http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/ It&#8217;s a fantastic jQuery plugin that replicates most of the features that you&#8217;ll expect from any windows context menu. A feature that I noticed was missing was what happens when you right click on the right and bottom edges of the screen. On windows the context menu appears [...]


Related posts:<ol><li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>jQuery Context Menu is available here: <a href="http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/">http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/</a></p>
<p>It&#8217;s a fantastic jQuery plugin that replicates most of the features that you&#8217;ll expect from any windows context menu.</p>
<p>A feature that I noticed was missing was what happens when you right click on the right and bottom edges of the screen. On windows the context menu appears to the left or above your cursor respectively, with the jQuery context menu plugin it appears off screen. Not exactly a big deal but here is the solution:</p>
<p><span id="more-286"></span></p>
<p>Open jquery.contextMenu.js  and after</p>
<blockquote>
<div id="_mcePaste">(e.pageX) ? x = e.pageX : x = e.clientX + d.scrollLeft;</div>
<div id="_mcePaste">(e.pageY) ? y = e.pageY : <strong>y</strong> = e.clientY + d.scrollTop;</div>
</blockquote>
<p>copy and paste in the following</p>
<blockquote>
<div id="_mcePaste">
<div id="_mcePaste">if (y + $(menu).outerHeight() &gt; d.pageYOffset + $(document.body).innerHeight()) {</div>
<div id="_mcePaste">y = y &#8211; $(menu).outerHeight()</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">if (x + $(menu).outerWidth() &gt; d.pageXOffset + $(document.body).innerWidth()) {</div>
<div id="_mcePaste">x = x &#8211; $(menu).outerWidth()</div>
<div id="_mcePaste">}</div>
</div>
</blockquote>
<p>And that&#8217;s it, you&#8217;re done.</p>
<p>In your version you may have an &#8216;x&#8217; where I have a &#8216;y&#8217; in bold. It may be worth replacing that. I haven&#8217;t investigated it fully but it makes more sense that way.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.lacy.ie%2Fjquery-context-menu-appears-off-screen-issue&amp;linkname=jQuery%20Context%20Menu%20appears%20off%20screen%20issue"><img src="http://www.lacy.ie/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lacy.ie/jquery-context-menu-appears-off-screen-issue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Official JqGrid ASP.Net Web Forms Control Alpha Demo</title>
		<link>http://www.lacy.ie/official-jqgrid-asp-net-web-forms-control-alpha-demo</link>
		<comments>http://www.lacy.ie/official-jqgrid-asp-net-web-forms-control-alpha-demo#comments</comments>
		<pubDate>Thu, 10 Sep 2009 16:25:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[ASP.Net Webforms]]></category>
		<category><![CDATA[JqGrid]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Jquery UI]]></category>

		<guid isPermaLink="false">http://lacy.ie/?p=226</guid>
		<description><![CDATA[First look at the official JqGrid ASP.Net Web Forms control here http://www.trirand.net/jqgrid.aspx Includes support for Linq and object data sources. Related posts:jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms Get JqGrid here: http://www.trirand.com/blog/ So far I&#8217;ve seen two implementations... JqGrid.Net Public Beta Just started using the ASP.Net Web Forms wrapper for JqGrid,... Handling Relative Paths [...]


Related posts:<ol><li><a href='http://www.lacy.ie/jquery-grid-plugin-jqgrid-with-asp-net-web-forms' rel='bookmark' title='Permanent Link: jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms'>jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms</a> <small>Get JqGrid here: http://www.trirand.com/blog/ So far I&#8217;ve seen two implementations...</small></li>
<li><a href='http://www.lacy.ie/jqgrid-net-public-beta' rel='bookmark' title='Permanent Link: JqGrid.Net Public Beta'>JqGrid.Net Public Beta</a> <small>Just started using the ASP.Net Web Forms wrapper for JqGrid,...</small></li>
<li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>First look at the official JqGrid ASP.Net Web Forms control here <a style="text-decoration: none;" href="http://www.trirand.net/jqgrid.aspx">http://www.trirand.net/jqgrid.aspx</a></p>
<p>Includes support for Linq and object data sources.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.lacy.ie%2Fofficial-jqgrid-asp-net-web-forms-control-alpha-demo&amp;linkname=Official%20JqGrid%20ASP.Net%20Web%20Forms%20Control%20Alpha%20Demo"><img src="http://www.lacy.ie/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.lacy.ie/jquery-grid-plugin-jqgrid-with-asp-net-web-forms' rel='bookmark' title='Permanent Link: jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms'>jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms</a> <small>Get JqGrid here: http://www.trirand.com/blog/ So far I&#8217;ve seen two implementations...</small></li>
<li><a href='http://www.lacy.ie/jqgrid-net-public-beta' rel='bookmark' title='Permanent Link: JqGrid.Net Public Beta'>JqGrid.Net Public Beta</a> <small>Just started using the ASP.Net Web Forms wrapper for JqGrid,...</small></li>
<li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lacy.ie/official-jqgrid-asp-net-web-forms-control-alpha-demo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Grid Plugin (JqGrid) with ASP.Net Web Forms</title>
		<link>http://www.lacy.ie/jquery-grid-plugin-jqgrid-with-asp-net-web-forms</link>
		<comments>http://www.lacy.ie/jquery-grid-plugin-jqgrid-with-asp-net-web-forms#comments</comments>
		<pubDate>Mon, 24 Aug 2009 17:57:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[JqGrid]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Jquery UI]]></category>
		<category><![CDATA[Web Forms]]></category>

		<guid isPermaLink="false">http://lacy.ie/?p=162</guid>
		<description><![CDATA[Get JqGrid here: http://www.trirand.com/blog/ So far I&#8217;ve seen two implementations of ASP.Net wrapper on JqGrid, one involves a httphandler and the other involves using a web service. Both add extra work onto the gridview/datasource pattern. Instead I had the JqGrid use a Callback Event Reference (Page.ClientScript.GetCallbackEventReference()) with async (a parameter) set to true, this allowed [...]


Related posts:<ol><li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
<li><a href='http://www.lacy.ie/cant-register-javascript-for-invisible-control' rel='bookmark' title='Permanent Link: Can&#039;t Register Javascript for Invisible Control'>Can&#039;t Register Javascript for Invisible Control</a> <small>I was writing an ASP.Net Dialog Control and I overwrote...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Get JqGrid here: <a href="http://www.trirand.com/blog/">http://www.trirand.com/blog/</a></p>
<p style="text-align: left;">So far I&#8217;ve seen two implementations of ASP.Net wrapper on JqGrid, one involves a httphandler and the other involves using a web service. Both add extra work onto the gridview/datasource pattern.</p>
<p style="text-align: left;">Instead I had the JqGrid use a Callback Event Reference (<a href="http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.getcallbackeventreference.aspx">Page.ClientScript.GetCallbackEventReference()</a>) with async (a parameter) set to true, this allowed me to call back directly to the custom asp.net JqGrid control instance and access the DataSource.</p>
<p style="text-align: left;">This is not ideal, as it passes the view state to the server first but it is the simplest and cleanest going from ASP.Net GridView to JqGrid.</p>
<p style="text-align: left;"><span id="more-162"></span></p>
<h2 style="text-align: left;">Other useful information</h2>
<p style="text-align: left;">Inherit CompositeDataBoundControl and add the attribute<br />
<span style="color: #3366ff;">[PersistenceModeAttribute(PersistenceMode.InnerProperty)]<br />
public DataControlFieldCollection Columns { get; set; }</span><br />
in order to get<br />
<span style="color: #3366ff;">&lt;My:Grid&gt;<br />
&lt;columns&gt;<br />
&lt;asp:BoundField&#8230;.</span><br />
working</p>
<p style="text-align: left;">implement CallbackEventHandler otherwise the <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.getcallbackeventreference.aspx">Page.ClientScript.GetCallbackEventReference()</a> won&#8217;t work.</p>
<p style="text-align: left;">I&#8217;d recommend using Rick Strahl&#8217;s ClientScriptProxy for registering your Javascript, it solves the problem of whether the page your control ended up on has a scriptmanager. Find that here: <a href="http://www.west-wind.com/weblog/posts/10246.aspx">http://www.west-wind.com/weblog/posts/10246.aspx</a></p>
<p style="text-align: left;">Here are some pages I found helpful on JqGrid: (if I find any more I&#8217;ll add them)</p>
<p style="text-align: left;"><a href="http://www.nshaw.com/2009/01/jqgrid-and-aspnet-web-forms-with-json.html">http://www.nshaw.com/2009/01/jqgrid-and-aspnet-web-forms-with-json.html</a><br />
<a href="http://geeks.netindonesia.net/blogs/cipto/archive/2009/04/03/jqgrid.aspx">http://geeks.netindonesia.net/blogs/cipto/archive/2009/04/03/jqgrid.aspx</a><br />
<a href="http://www.codeproject.com/KB/WCF/jqGrid.aspx">http://www.codeproject.com/KB/WCF/jqGrid.aspx</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.lacy.ie%2Fjquery-grid-plugin-jqgrid-with-asp-net-web-forms&amp;linkname=jQuery%20Grid%20Plugin%20%28JqGrid%29%20with%20ASP.Net%20Web%20Forms"><img src="http://www.lacy.ie/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
<li><a href='http://www.lacy.ie/cant-register-javascript-for-invisible-control' rel='bookmark' title='Permanent Link: Can&#039;t Register Javascript for Invisible Control'>Can&#039;t Register Javascript for Invisible Control</a> <small>I was writing an ASP.Net Dialog Control and I overwrote...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lacy.ie/jquery-grid-plugin-jqgrid-with-asp-net-web-forms/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</title>
		<link>http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms</link>
		<comments>http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms#comments</comments>
		<pubDate>Wed, 12 Aug 2009 10:08:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Web Forms]]></category>

		<guid isPermaLink="false">http://lacy.ie/?p=153</guid>
		<description><![CDATA[I had a problem where I wanted to use the intellisense version of JQuery when I am writing the code, the normal version when I debug it and the minified when it actually hits production. I also wanted all this done on my master page so the path to the js file had to be [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I had a problem where I wanted to use the intellisense version of JQuery when I am writing the code, the normal version when I debug it and the minified when it actually hits production.<br />
I also wanted all this done on my master page so the path to the js file had to be relative to the site root and not the page it was defined on.</p>
<p>I found the solution here:</p>
<p><a href="http://damianedwards.wordpress.com/2009/03/28/setting-up-jquery-for-aspnet-web-forms-projects/">http://damianedwards.wordpress.com/2009/03/28/setting-up-jquery-for-aspnet-web-forms-projects/</a></p>
<p>It essentially revolves around using the script manager to reference the JS files and using naming conventions so it knows which one to open where.</p>
<p>Edit: <span style="color: #ff6600;">Don&#8217;t forget to download the hotfix or the -vsdoc won&#8217;t work.</span></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.lacy.ie%2Fhandling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms&amp;linkname=Handling%20Relative%20Paths%20and%20debug%20mode%20with%20Jquery%20in%20ASP.Net%20Web%20Forms"><img src="http://www.lacy.ie/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->