﻿<?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 - Question Hyper Link Grid Column and Context Menu</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-Hyper-Link-Grid-Column-and-Context-Menu/</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>Question Hyper Link Grid Column and Context Menu</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-Hyper-Link-Grid-Column-and-Context-Menu/</link><pubDate>Tue, 22 Sep 2009 22:29:08 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I attached simple sample for Question 1. Hope this helps. For Question 2, you can shut off context menu by setting 'AllowContextMenu=false' in LayoutSettings.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Question Hyper Link Grid Column and Context Menu</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-Hyper-Link-Grid-Column-and-Context-Menu/</link><pubDate>Tue, 22 Sep 2009 22:08:31 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;In order to disable the Hyperlink column you could set the ColumnType to text, however you will need to set the column type to hyperlink for the column you wish to have hyperlink style. This could be done during InitializeRow server side event. Here is the snippet to set the column type of URL column&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;e.Row.Cells.GetNamedItem("url").Column.ColumnType = ColumnType.Text;&lt;br /&gt;e.Row.Cells.GetNamedItem("url").Column.ColumnType = ColumnType.HyperLink;&lt;/pre&gt;&lt;p&gt;In order to disable context menu, please set the property AllowContextMenu to false under the LayoutSetting.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Question Hyper Link Grid Column and Context Menu</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-Hyper-Link-Grid-Column-and-Context-Menu/</link><pubDate>Tue, 22 Sep 2009 11:12:41 GMT</pubDate><dc:creator>alagaraja@gmail.com</dc:creator><description>&lt;p&gt;Question 1:&lt;/p&gt;
&lt;p&gt;I have a webgrid, one of the column is of type hyper link (&lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;ColumnType&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Hyperlink"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; ).&amp;nbsp; For some of the rows in the grid, I need to disable hyperlink (meaning just the text no hyperlink). How do I do this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I tried IntializeRow event of the webgrid and no success in disabling some rows hyperlink. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Question 2:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;How do i disable context menu?. When the user right clicks on the gird, I do not want to display the context menu at all. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Thanks&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>