﻿<?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 - How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</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>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Mon, 24 Aug 2009 00:47:18 GMT</pubDate><dc:creator>Dicky</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;p&gt;&lt;/p&gt;as Handy said we didn't release list of menu items. We will ask our documentation team to add this information in the next released documentation. Thanks for your feedback.</description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 14:12:39 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;Unfortunately, sometimes I also used debugger (watch window) to know list of all menu items name. &lt;br /&gt;If I am not mistaken, the list of all menu items name is not located in our documentation yet. &lt;br /&gt;So, I think we can talk to our documentation team for adding this into our docs. &lt;br /&gt;Hope with this information could be helpful for another customer in the future. &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 08:04:32 GMT</pubDate><dc:creator>Michael</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;p&gt;Hi Dicky&lt;/p&gt;
&lt;p&gt;Thank you for tip!&lt;/p&gt;
&lt;div id="result_box" style="text-align: left" dir="ltr"&gt;Where can I find a list of all menu items name?&lt;/div&gt;
&lt;div style="text-align: left" dir="ltr"&gt;&lt;/div&gt;
&lt;div style="text-align: left" dir="ltr"&gt;Michael&lt;/div&gt;</description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 07:06:17 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Memo,&lt;/p&gt;
&lt;p&gt;My replied above should be guided you how to do it. Please let me know if It doesn't work for your scenario. &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 06:03:17 GMT</pubDate><dc:creator>civansmail@gmail.com</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks Michael,&lt;/p&gt;
&lt;p&gt;But I dont want to remove or hide context menu items. &lt;/p&gt;
&lt;p&gt;I want to hide some FilterTypes in Filter Menu that opened after clicking Filter Icon.&lt;/p&gt;
&lt;p&gt;I attached it is screenshot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 05:24:14 GMT</pubDate><dc:creator>Dicky</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;blockquote&gt;&lt;p&gt;Hi Memo&lt;/p&gt;&lt;p&gt;You can use the client-side-event &lt;em&gt;OnRowContextMenu.&lt;/em&gt;&lt;/p&gt;&lt;div id="result_box" dir="ltr"&gt;You just need to find out how the menu is called.&lt;/div&gt;
&lt;div dir="ltr"&gt;
&lt;div id="result_box" style="text-align: left; " dir="ltr"&gt;Here is an example to hide the Help menu:&lt;/div&gt;
&lt;div style="text-align: left; " dir="ltr"&gt; &lt;/div&gt;
&lt;div style="text-align: left; " dir="ltr"&gt; &lt;pre&gt;  function grdPL_OnRowContextMenu(controlId, rowType, rowElement, menuObject)
  {
      var i;
      for (i = 0; i &amp;lt; menuObject.Items.length; i  ) {
          if (menuObject.Items[i] != null) {
              if (menuObject.Items[i].Name == "mnuHelp") {
                  menuObject.Items[i - 1].Hide();
                  menuObject.Items[i].Hide();
              }
          }
      }
   return true;
  }&lt;/pre&gt;
&lt;p /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
Hi Michael,

&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Thanks for your participation. Your solution will work for WebGrid row context menu, meanwhile what Memo needs is to modify WebGrid filter context menu. So I think Handy's response is the answer for Memo's scenario.&lt;br /&gt;&lt;br /&gt;But it's okay your codes should be worked for another customer who needs to modify row context menu. &lt;img id="" src="http://intersoftpt.com/WebResources/Images/Community/Editor/smiley1.gif" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; " /&gt;&lt;br /&gt;&lt;br /&gt;By the way I have another tips for you: you can use GetNamedItem() method instead use For to loop all the menu items. Here the code snippet :&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject)
{
	var grid = ISGetObject(controlId);
	var loadMoreItem = menuObject.Items.GetNamedItem("mnuLoadMore");
	loadMoreItem.Hide();         
	return true;
}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;Keep posting on our community. Thanks!&lt;/p&gt; &lt;br /&gt;&lt;/div&gt; </description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 05:12:41 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;How can I remove (or dont show)&amp;nbsp;grid filter options like "Is Not Empty" or 'Is Null' etc. Detail is in attached file.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You will need to add and customize your own filter Context Menu. E,g &lt;em&gt;OnAfterInitialize&lt;/em&gt; event you can place the code like below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnAfterInitialize(controlId)
{
	var WebGrid1 = ISGetObject(controlId); 
	wg_Global.FilterType = new Array(["NotSet",0], ["GTET",1],["GT", 2],["ET", 3],["NET", 9] ,["LTET", 4] ,["LT", 5] ,["Like", 6] ,["NotLike", 11] ,["Between", 7] ,["NotBetween", 10] ,["IsEmpty", 14],["NotIsEmpty", 15]);
			&lt;br /&gt;	return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;&lt;span color="#0000ff" size="2"&gt;&lt;span color="#0000ff" size="2"&gt;&lt;span size="2"&gt;&lt;span size="2"&gt;&lt;span size="2"&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For more information, please refer into our WebGrid references (documentation) and search for "How-to : Customize Filter context menu". It will sure give your information about the available Filter Context Menu. Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 04:35:30 GMT</pubDate><dc:creator>Michael</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;p&gt;Hi Memo&lt;/p&gt;
&lt;p&gt;You can use the client-side-event &lt;em&gt;OnRowContextMenu.&lt;/em&gt;&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;You just need to find out how the menu is called.&lt;/div&gt;
&lt;div dir="ltr"&gt;&lt;div id="result_box" style="text-align: left" dir="ltr"&gt;Here is an example to hide the Help menu:&lt;/div&gt;&lt;div style="text-align: left" dir="ltr"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: left" dir="ltr"&gt;&amp;nbsp;&lt;pre&gt;  function grdPL_OnRowContextMenu(controlId, rowType, rowElement, menuObject)
  {
      var i;
      for (i = 0; i &amp;lt; menuObject.Items.length; i  ) {
          if (menuObject.Items[i] != null) {
              if (menuObject.Items[i].Name == "mnuHelp") {
                  menuObject.Items[i - 1].Hide();
                  menuObject.Items[i].Hide();
              }
          }
      }
   return true;
  }&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>How can I remove grid filter options like "Is Not Empty" or 'Is Null' etc.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-remove-grid-filter-options-like-Is-Not-Empty-or-Is-Null-etc/</link><pubDate>Fri, 21 Aug 2009 02:48:59 GMT</pubDate><dc:creator>civansmail@gmail.com</dc:creator><category>ContextMenu</category><category>grid filter options remove</category><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How can I remove (or dont show) grid filter options like "Is Not Empty" or 'Is Null' etc. Detail is in attached file.&lt;/p&gt;</description></item></channel></rss>