﻿<?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 - Context menus appearing out of place</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Context-menus-appearing-out-of-place/</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>Context menus appearing out of place</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Context-menus-appearing-out-of-place/</link><pubDate>Fri, 04 Feb 2011 05:58:50 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This issue has been fixed in the latest build version of WebGrid, which is version 7.0.7200.418.&lt;/p&gt;
&lt;p&gt;Please update your build version using Update Manager and try to run your project. The error should no longer exist.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Context menus appearing out of place</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Context-menus-appearing-out-of-place/</link><pubDate>Thu, 03 Feb 2011 11:07:51 GMT</pubDate><dc:creator>guspaz@gmail.com</dc:creator><description>&lt;p&gt;I've attached two sample screenshots. This is actually showing not the row context menu, and not the filter button context menu, but the filter textbox context menu. The same problem seems to apply to that.&lt;/p&gt;</description></item><item><title>Context menus appearing out of place</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Context-menus-appearing-out-of-place/</link><pubDate>Thu, 03 Feb 2011 11:04:25 GMT</pubDate><dc:creator>guspaz@gmail.com</dc:creator><description>Hi,
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;We're having a problem where context menus appear out of place. First, here's some sample markup and the codebehind:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OwGrid.aspx.cs" Inherits="TestControls.OwGrid"%&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISNet" %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head id="Head1" runat="server"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
        &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
        &amp;lt;IsNet:WebGrid ID="Gri1" runat="server" Width="100%" UseDefaultStyle="True" DefaultStyleMode="Elegant" OnInitializeDataSource="GridInitialize"&amp;gt;
            &amp;lt;RootTable RowHeaders="Yes" RowHeightDefault="20px" Caption="New Title" TableHeaderVisible="true"&amp;gt;
                &amp;lt;Columns&amp;gt;
                    &amp;lt;IsNet:WebGridColumn Name="ColA" DataMember="ColA" Caption="Column A"  /&amp;gt;
                    &amp;lt;IsNet:WebGridColumn Name="ColB" DataMember="ColB" Caption="Column B"  /&amp;gt;
                &amp;lt;/Columns&amp;gt;
            &amp;lt;/RootTable&amp;gt;
            &amp;lt;LayoutSettings AllowFilter="Yes" AllowGrouping="Yes" AllowEdit="Yes" AllowSorting="Yes" AllowColumnSizing="Yes" PagingMode="ClassicPaging"&amp;gt;&amp;lt;/LayoutSettings&amp;gt;
        &amp;lt;/IsNet:WebGrid&amp;gt;
        &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;span style="font-family: 'courier new', tahoma; font-size: 12px; white-space: pre; "&gt;using System;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ISNet.WebUI.WebGrid;
namespace TestControls
{
    public partial class OwGrid : System.Web.UI.Page
    {
        protected void GridInitialize(object sender, DataSourceEventArgs e)
        {
            e.DataSource = new List&amp;lt;Foo&amp;gt;() { new Foo() { ColA = "1", ColB = "2" } };
        }
    }
    public class Foo
    {
        public string ColA { get; set; }
        public string ColB { get; set; }
    }
}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Originally, the problem we had was with the filter context menu appearing out of place. If you scroll down and click on the filter icon, the filter context menu appears farther down the page. We solved this by removing the "xmlns" from the HTML tag. However, the row context menus are still broken.&lt;br /&gt;&lt;br /&gt;In IE6/7/8, if you scroll down, they appear on the page where they would have if you had not scrolled down the page; they're not taking the scroll location into consideration.&lt;br /&gt;&lt;br /&gt;I found a temporary workaround by overriding the OnRowContextMenu function, and using the "IS.moz" code for IE:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;x = event.clientX &amp;#43; document.body.scrollLeft &amp;#43; document.documentElement.scrollLeft;
y = event.clientY &amp;#43; document.body.scrollTop &amp;#43; document.documentElement.scrollTop;&lt;/pre&gt;&lt;p&gt;However, this only fixes the problem for IE8. IE6 doesn't seem to support the scrollTop properties.&lt;/p&gt;&lt;p&gt;I'm using version 7.0.7200.401 of the grid. Is there a workaround for these issues that work on all browsers? Has this bug been fixed in newer versions of the grid?&lt;/p&gt;&lt;p /&gt;&lt;/div&gt;</description></item></channel></rss>