﻿<?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 - WebGrid edit box misplaced when browser's window is scrolled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-edit-box-misplaced-when-browsers-window-is-scrolled/</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>WebGrid edit box misplaced when browser's window is scrolled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-edit-box-misplaced-when-browsers-window-is-scrolled/</link><pubDate>Mon, 02 Nov 2015 02:13:39 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to hear that the snippet code helps to resolve the problem - WebGrid edit box misplaced when browser's window is scrolled.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid edit box misplaced when browser's window is scrolled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-edit-box-misplaced-when-browsers-window-is-scrolled/</link><pubDate>Fri, 30 Oct 2015 14:31:39 GMT</pubDate><dc:creator>dbar@diasfalisis.gr</dc:creator><description>&lt;p&gt;I've added the code you proposed and it works great now.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Many thanks!&lt;/p&gt;</description></item><item><title>WebGrid edit box misplaced when browser's window is scrolled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-edit-box-misplaced-when-browsers-window-is-scrolled/</link><pubDate>Thu, 22 Oct 2015 04:14:10 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I created a simple page of WebGrid based on your description and managed to reproduce the reported problem in my local test.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Adding the following JS code fix the edit box misplaced problem in my local end. Thanks to &lt;a href="http://www.intersoftsolutions.com/Community/Users/leo.c" target="_blank"&gt;Leo Chandra&lt;/a&gt; for providing the script.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function EnterEditMode(controlId, tblName, editObject)
{
    if (IS.chrome || IS.moz)
    {
        var grid = ISGetObject(controlId)
        var element = editObject.element;

        if (editObject.element.GetFrameElement)
            element = editObject.element.GetFrameElement();

        var offsetLeft = ISPosLib.getLeftNonIE(grid.FrameObj) - ISPosLib.getLeft(grid.FrameObj);
        element.style.left = (parseInt(element.style.left) + (offsetLeft)) + "px";
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Try to assign the above script to WebGrid's &lt;strong&gt;OnEnterEditMode&lt;/strong&gt; client-side event. Please feel free to let me know if you have different result.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid edit box misplaced when browser's window is scrolled</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-edit-box-misplaced-when-browsers-window-is-scrolled/</link><pubDate>Wed, 21 Oct 2015 14:05:04 GMT</pubDate><dc:creator>dbar@diasfalisis.gr</dc:creator><description>&lt;p&gt;In a certain page type of our project, WebGrid is contained within a div which is absolutely positioned on the page. There may be more that one DIVs like this and the whole look resembles to a MDI windows application.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Depending on the size and position of each DIV, the actual page size might exceed the physical size of the browser window. In this case, scrollbars appear on the browser window and the user can use them to scroll around the page.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;In the latter case, if a record is edited, the corresponding textbox on the grid is misplaced. &lt;b&gt;The offset is equal to the amount of window scrolling.&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;b&gt;On IE11 it works fine&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;On &lt;b&gt;Chrome &lt;/b&gt;the edit box is moved &lt;b&gt;to the left&lt;/b&gt; (see attached document for a screenshot)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;On &lt;b&gt;Firefox &lt;/b&gt;the edit box is moved &lt;b&gt;to the right&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;(see attached document for a screenshot)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;If the window is not scrolled, the edit box is displayed in place.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Any ideas?&lt;/div&gt;&lt;div&gt;Thanks,&lt;/div&gt;&lt;div&gt;Dimitris&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</description></item></channel></rss>