﻿<?xml version="1.0" encoding="utf-8"?><rss 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:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Disable Context Menu on Filter Row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disable-Context-Menu-on-Filter-Row/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Disable Context Menu on Filter Row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disable-Context-Menu-on-Filter-Row/</link><pubDate>Tue, 15 Jun 2010 03:08:11 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to prevent the context menu from popping up if the user right-clicks on the Filter Row, we can utilize the OnRowContextMenu client side event of WebGrid. OnRowContextMenu client side event specifies the client side (JavaScript) function that will be invoked when row context menu is about to be displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Next, determine the row type. If row type is filter row, then “return false”.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;function&lt;/span&gt; WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) {

    &lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;if&lt;/span&gt; (rowType == &lt;span style="font-family: 'courier new'; color: #a31515; font-size: 10pt"&gt;"FilterRow"&lt;/span&gt;)
        &lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;return false&lt;/span&gt;;

    &lt;span style="font-family: 'courier new'; color: blue; font-size: 10pt"&gt;return true&lt;/span&gt;;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This should helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Disable Context Menu on Filter Row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disable-Context-Menu-on-Filter-Row/</link><pubDate>Mon, 14 Jun 2010 16:10:40 GMT</pubDate><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;How can I prevent the context menu from popping up if the user right-clicks on the Filter Row?&lt;/p&gt;</description></item></channel></rss>