﻿<?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 - RowContextMenu</title><link>http://www.intersoftsolutions.com/Community/Tags/RowContextMenu/</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>RowContextMenu Issue</title><link>http://www.intersoftsolutions.com/Community/Tags/RowContextMenu/</link><pubDate>Tue, 28 Dec 2010 21:45:14 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>ContextMenu</category><category>RowContextMenu</category><description>&lt;p&gt;I want  to hide the blue lines when I hide some menus.&lt;br /&gt;how to do it?Or how can I custom the menu on assigned position???&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;(please see the attach picture!)&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) {

    menuObject.Items.GetNamedItem("mnuCopyCell").Hide();
    menuObject.Items.GetNamedItem("mnuCopyRow").Hide();
    menuObject.Items.GetNamedItem("mnuCopyTable").Hide();
    menuObject.Items.GetNamedItem("mnuHelp").Hide();
    menuObject.Items.GetNamedItem("mnuDelete").Hide();
    menuObject.Items.GetNamedItem("mnuRefresh").Hide();
    menuObject.Items.GetNamedItem("mnuEdit").Hide();
    
    var addOne = new WebMenuItem();
    addOne.Text = '添加1行';
    addOne.OnClick = "insertGridRows(1)";
    menuObject.Items.Add(addOne);
    var deleteRows = new WebMenuItem();
    deleteRows.Text = '删除多行';
    deleteRows.Name = 'delterows';
    deleteRows.OnClick = "deleteMutRows()";
    menuObject.Items.Add(deleteRows);

}&lt;/pre&gt;</description></item></channel></rss>