﻿<?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 - Customize webmenu</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-webmenu/</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>Customize webmenu</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-webmenu/</link><pubDate>Wed, 18 Nov 2009 02:11:44 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; mso-themecolor: text2"&gt;You can try to use “Move” method that available in menuObject.Items.&lt;br /&gt;The snippet below shows how to add a row context menu item and a separator to the top position of WebGrid row context menu.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) {
    var separator = new WebMenuItem();
    separator.Type = "Separator";
    separator.Name = "MySeparator";

    var menuItem = new WebMenuItem();
    menuItem.Text = "View Row's KeyValue";
    menuItem.Name = "MyMenu";
    menuItem.OnClick = "RowKeyValue";

    //Add Menu Separator and Menu Item
    menuObject.Items.Add(menuItem);
    menuObject.Items.Add(separator);
    menuObject.Items.Move(menuItem.Index, 0);
    menuObject.Items.Move(separator.Index, 1);
            
    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Customize webmenu</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-webmenu/</link><pubDate>Tue, 17 Nov 2009 04:03:24 GMT</pubDate><dc:creator>pchanez</dc:creator><description>&lt;p&gt;Is it possible to insert a menu item at a certain location ? At the moment I only manage to add my custom menu items at the end of the webmenu, but I would like to have them at the begining ...&lt;/p&gt;
&lt;p&gt;Is it possible ?&lt;/p&gt;</description></item></channel></rss>