iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
How can I remove (or dont show) grid filter options like "Is Not Empty" or 'Is Null' etc. Detail is in attached file.
You will need to add and customize your own filter Context Menu. E,g OnAfterInitialize event you can place the code like below:
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]); return true; }
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.
Regards,Handy
Hi Memo
You can use the client-side-event OnRowContextMenu.
function grdPL_OnRowContextMenu(controlId, rowType, rowElement, menuObject) { var i; for (i = 0; i < 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; }
Hope it helps.
Michael
Hi MemoYou can use the client-side-event OnRowContextMenu.You just need to find out how the menu is called. Here is an example to hide the Help menu: function grdPL_OnRowContextMenu(controlId, rowType, rowElement, menuObject) { var i; for (i = 0; i < 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; }
function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) { var grid = ISGetObject(controlId); var loadMoreItem = menuObject.Items.GetNamedItem("mnuLoadMore"); loadMoreItem.Hide(); return true; }
Keep posting on our community. Thanks!
Thanks Michael,
But I dont want to remove or hide context menu items.
I want to hide some FilterTypes in Filter Menu that opened after clicking Filter Icon.
I attached it is screenshot.
Memo,
My replied above should be guided you how to do it. Please let me know if It doesn't work for your scenario.
Hi Dicky
Thank you for tip!
Hi Michael,
Unfortunately, sometimes I also used debugger (watch window) to know list of all menu items name. If I am not mistaken, the list of all menu items name is not located in our documentation yet. So, I think we can talk to our documentation team for adding this into our docs. Hope with this information could be helpful for another customer in the future.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname