<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Grid scrolls to top after selecting a cell</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Roy on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p29099</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p29099</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Above solutions don&#39;t work for me.</p>
<p>The problem is occured only at the HTML5 Document.</p>
<p>So, I created a hack. (If editCell function have event parameter then the solution will be clearer than below hack.)</p>
</p>
<p>Paste below code at two position in the grid.celledit.js.</p>
</p>
<p>code:</p>
<p style="padding-left: 30px;">if (window.event) {</p>
<p style="padding-left: 30px;"><span style="white-space:pre"> </span>$("#"+$.jgrid.jqID($t.p.knv)).offset({top:$(&#39;body&#39;).scrollTop(), left:window.event.pageX});</p>
<p style="padding-left: 30px;">} else {</p>
<p style="padding-left: 30px;"><span style="white-space:pre"> </span>$("#"+$.jgrid.jqID($t.p.knv)).offset({top:$(&#39;body&#39;).scrollTop()});</p>
<p style="padding-left: 30px;">}</p>
</p>
<p>grid.celledit.js position:</p>
<p><span style="white-space:pre"> </span>- Line 40 : above of $t.p.selrow = $t.rows[iRow].id;</p>
<p><span style="white-space: pre;"> </span>- Line 411 : above of $("#"+$t.p.knv)</p>
]]></description>
        	        	<pubDate>Thu, 04 Jul 2013 05:24:54 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p28333</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p28333</guid>
        	        	<description><![CDATA[</p>
<p>In jquery.jqGrid-4.4.3, (the last version to support ie6), with latest chorme, the problem is still there.</p>
<p>If you can&#39;t reproduce the problem, it&#39;s because your jqgrid is not BIG enough, or your computer screen is TOO BIG enough. if you has many rows exceeding your computer screen, and use vertical scrolling of browser to view the last row of jqgrid, and click any of the cells, you will see the browser vertical scrolls(not means the jqgrid vertical scroll) to the top to show the head of the page.</p>
</p>
<p><strong>In jquery.jqgrid.min.js search for "&#60;div style=&#39;position:absolute;top:-1000000px;width:1px;height:1px;&#39;" and change the style attribute "position:absolute" to "position:fixed".</strong></p>
</p>
<p>In fact, in &#160;jquery.jqGrid-4.4.3, this is modified, and works fine with IE6,7,8, BUT STILL HAS Problem with IE9 and Chorme &#160;23.0.1271.95. &#160;&#160;</p>
<p>So this is two problem in fact. The 1st problem is the jqgrid&#39;s self scorll problem, which is solved as mentioned above. The 2nd problem is about &#160;the BROWSER&#39;s &#160;scroll, when the page height is high, and jqgrid is at the bottom of the page, and when you click the cell, the page&#39;s browsser sroll bar will scroll to the page top head.</p>
<p>The 2nd problem could be hacked by <strong>remove&#160;c.p.knv&#124;&#124;b(c).jqGrid("GridNav");</strong></p>
</p>
<p>So he 2nd problem is still there.</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Tue, 26 Feb 2013 05:45:49 +0200</pubDate>
        </item>
        <item>
        	<title>morris on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p28168</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p28168</guid>
        	        	<description><![CDATA[<p><strong>pkane&#39;s solution worked great for me in 4.3.1 with IE, FF, Chrome of last year</strong></p>
<p><strong><br /> </strong></p>
<p><strong>Now on 4.4.3, IE9 and FF 18.01 have issues. I tried sergey68&#39;s fix. Chrome 24 and FF seem ok, but IE9 still is wonky.&#160;</strong></p>
]]></description>
        	        	<pubDate>Tue, 29 Jan 2013 23:34:41 +0200</pubDate>
        </item>
        <item>
        	<title>sergey68 on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27761</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27761</guid>
        	        	<description><![CDATA[<p>This does not work quite right. I also had to set top:0 in addition to position:fixed</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Tue, 20 Nov 2012 21:27:03 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27608</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27608</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Thanks all and sorry for the late fix.</p>
<p>Fixed in GitHub</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 23 Oct 2012 10:03:46 +0300</pubDate>
        </item>
        <item>
        	<title>Wolf on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27597</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27597</guid>
        	        	<description><![CDATA[<blockquote>
<p>mercurio said:pkane&#39;s solution is working for me, too. Is there any chance this will make it into a future release? Alternatively, putting that outer span&#39;s style into the CSS would allow those of us who need this fix to implement it in CSS rather than patching the source.</p>
</blockquote>
<hr />
<p>pkane&#39;s solution works for me too!</p>
</p>
<p>I am using jqGrid 4.4.1.</p>
<p>Here&#39;s what I had to do to fix this issue:</p>
<p>In jquery.jqgrid.min.js search for "&#60;div style=&#39;position:absolute;top:-1000000px;width:1px;height:1px;&#39;" and change the style attribute "position:absolute" to "position:fixed".</p>
]]></description>
        	        	<pubDate>Mon, 22 Oct 2012 16:12:37 +0300</pubDate>
        </item>
        <item>
        	<title>nvrs on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27432</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27432</guid>
        	        	<description><![CDATA[<p>If it is of any help, this didn&#39;t happen with 4.4.0. Of course, in 4.4.0 you couldn&#39;t navigate the grid with the arrow keys but still, with the scroll to top behaviour when celledit starts or finishes, the feature is practically unusable for my use case (save button and other vital info is below the grid and grids are often longer than 25 lines.</p>
]]></description>
        	        	<pubDate>Fri, 28 Sep 2012 11:41:01 +0300</pubDate>
        </item>
        <item>
        	<title>nvrs on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27431</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell/page-2#p27431</guid>
        	        	<description><![CDATA[<p>With the latest version of jqgrid (4.4.1) this happens to me with both FF 15.0.1 and Chrome 22. I guess i ll have to resort to inline editing.</p>
]]></description>
        	        	<pubDate>Fri, 28 Sep 2012 11:12:46 +0300</pubDate>
        </item>
        <item>
        	<title>adkan11 on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p24845</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p24845</guid>
        	        	<description><![CDATA[<p>Hey Guys,</p>
</p>
<p>I&#39;m using&#160; jqgrid&#160;4.1.1 with IE8... And the same problem is happening to me also.</p>
<p>I have four levels of grid. Grid inside grid. How do i resolve that..?</p>
</p>
<p>When scroll down subgrid and select a cell. Grid gets scrill to top.</p>
</p>
<p>Thanks in advance</p>
]]></description>
        	        	<pubDate>Mon, 10 Oct 2011 17:10:18 +0300</pubDate>
        </item>
        <item>
        	<title>Wakamolee on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p22396</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p22396</guid>
        	        	<description><![CDATA[<p>First of all, thanks for such a great plugin.</p>
</p>
<p>As of version 3.8.2, this bug is still persistent. I had to recode to inline editing because of this. When the top of the grid is off-screen, whenever I click a row, or press enter to apply the changes, it scrolls to the top of the grid.</p>
</p>
<p>Hope to see this bug fixed in a future release, because cell editing has many more events to use than inline editing.</p>
</p>
<p>EDIT: The bug only happens with Firefox (3.6.15) and IE 8, Chrome (10) works ok.</p>
]]></description>
        	        	<pubDate>Sun, 13 Mar 2011 16:04:04 +0200</pubDate>
        </item>
        <item>
        	<title>Vetal on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p22242</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p22242</guid>
        	        	<description><![CDATA[<p>I cannot find any mentions about this fix in Change Log for the previous versions including the last one 3.8.2. Please clarify was the fix&#160;included or not? If not, is it planning to include it in the future releases?</p>
</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Mon, 28 Feb 2011 16:27:07 +0200</pubDate>
        </item>
        <item>
        	<title>mercurio on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p20477</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p20477</guid>
        	        	<description><![CDATA[<p>I just checked, and pkane&#39;s patch is still not in the just-released 3.8.1 version. Any chance this</p>
<p>will get incorporated into a release someday?</p></p>
]]></description>
        	        	<pubDate>Tue, 26 Oct 2010 00:31:38 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p19511</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p19511</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. It seems that I have missed <strong>pkane</strong>&#160; post.</p>
<p>Will test and if everthing is ok I will apply the fix.</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Sep 2010 09:45:34 +0300</pubDate>
        </item>
        <item>
        	<title>mercurio on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p19458</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p19458</guid>
        	        	<description><![CDATA[<p>pkane&#39;s solution is working for me, too. Is there any chance this will make it into a future release? Alternatively, putting that outer span&#39;s style into the CSS would allow those of us who need this fix to implement it in CSS rather than patching the source.</p>
]]></description>
        	        	<pubDate>Wed, 01 Sep 2010 03:27:38 +0300</pubDate>
        </item>
        <item>
        	<title>nayanjyotionline on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p17428</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p17428</guid>
        	        	<description><![CDATA[<p>I try to validate a simple Form but the Jquery Validation Plugin not woking when I use only Button not The Submit Button. <br />I can not use the Submit button there Because If I use submit Button After Submitting the form It take the Action and goes to Default page while my current form is comes from Ajax. I am very new to Jquery. Please Help its Urgent...<br />I am giving the files here. <br />index.html</p>
<p>&#60;html&#62;<br />&#60;head&#62;<br />&#60;script src="jquery.js"&#62;<br />&#60;script="jquery-validate-min.js"&#62;<br />&#60;script="validation.js&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;form id="contact_form"&#62;<br />&#60;table&#62;<br />&#60;tr&#62;&#60;th&#62;Name&#60;/th&#62;&#60;td&#62;&#60;input name="name" /&#62;&#60;/td&#62;&#60;/tr&#62;<br />&#60;tr&#62;&#60;th&#62;E Mail&#60;/th&#62;&#60;td&#62;&#60;input name="email" /&#62;&#60;/td&#62;&#60;/tr&#62;<br />&#60;tr&#62;&#60;th&#62;&#60;input type="button" name ="submit" id="form_sub" onclick="save"&#62;&#60;/th&#62;&#60;td&#62;&#60;input name="email" /&#62;&#60;/td&#62;&#60;/tr&#62;<br />&#60;/table&#62;<br />&#60;/form&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
<p>Now the validation.js file</p>
<p>function save(){</p>
<p>$("#form_sub").click(function(){<br />$("#contact_form").validate({<br />&#39;rules&#39;:{<br />&#39;name&#39;:{<br />&#39;required&#39;:true,<br />&#39;minlength&#39;:5<br />},<br />&#39;email&#39;:{<br />&#39;required&#39;:true,<br />&#39;email&#39;:true<br />}<br />}<br />})<br />}</p>
</p>
<p>Everything works fine when we use input type="submit"...<br />But it not working when we use input type="button"</p>
</p>
<p>Any Idea how can Fix this?<br />I am new to Jquery ... Please Help</p>
]]></description>
        	        	<pubDate>Mon, 24 May 2010 19:33:05 +0300</pubDate>
        </item>
        <item>
        	<title>pkane on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p17317</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p17317</guid>
        	        	<description><![CDATA[<p>Here&#39;s a solution that is working for me:</p>
</p>
<p>At line 346 of grid.celledit.js:</p>
<p>var selection = $("&#60;span style=&#39;width:0px;height:0px;background-color:black;&#39; tabindex=&#39;0&#39;&#62;&#60;span...</p>
</p>
<p>Add "position:fixed;top:0px;left:0px" to the style attribute of the outer span.</p>
</p>
<p>The inner span is the element which responds to the up/down/left/right keyboard events and moves the selected cell. To do this, it needs to have the focus. When it is given the focus, FF and IE scroll the browser, if necessary, so that it is visible. If you are editing a long grid, the browser may scroll up since the hidden span is inserted at the top of the grid. My proposed solution fixes the span to the viewport so that it&#39;s always "visible", and the browser doesn&#39;t have to scroll.</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 22:05:12 +0300</pubDate>
        </item>
        <item>
        	<title>dajaney on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14638</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14638</guid>
        	        	<description><![CDATA[<p>bump, any thoughts?</p>
]]></description>
        	        	<pubDate>Mon, 08 Feb 2010 18:48:55 +0200</pubDate>
        </item>
        <item>
        	<title>dajaney on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14351</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14351</guid>
        	        	<description><![CDATA[<p>If I comment out that line, the page scrolling/jumping is fixed. The escape and enter keys still work. However, the left, right, up, and down arrow keys no longer work for the grid and the user is forced to use their mouse to navigate the cells from then on. My users are utilizing the arrow keys when working with my grid.</p>
</p>
<p>So, we are close but I need a way to fix this issue without eliminating the arrow keys for cell navigation.</p>
]]></description>
        	        	<pubDate>Thu, 28 Jan 2010 17:00:29 +0200</pubDate>
        </item>
        <item>
        	<title>steipete on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14346</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14346</guid>
        	        	<description><![CDATA[<p>Yes, uncommenting the GridNav() fixes that issue. Thanks, sean!</p>
]]></description>
        	        	<pubDate>Thu, 28 Jan 2010 16:51:36 +0200</pubDate>
        </item>
        <item>
        	<title>steipete on Grid scrolls to top after selecting a cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14342</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-scrolls-to-top-after-selecting-a-cell#p14342</guid>
        	        	<description><![CDATA[<p>This is something serious and VERY annoying.</p>
</p>
<p>It&#39;s happening for me too. My company uses the app only with Chrome now because every other browser shows this weird scrolling bug.</p>
</p>
<p>Currently I&#39;m using github head of mid january, i&#39;ll try out the fix from @sean.</p>
]]></description>
        	        	<pubDate>Thu, 28 Jan 2010 15:55:27 +0200</pubDate>
        </item>
</channel>
</rss>