<?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: Top/Left For Form Load</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/topleft-for-form-load</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/help/topleft-for-form-load/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Top/Left For Form Load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/topleft-for-form-load#p10595</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/topleft-for-form-load#p10595</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is discused many times. The problem is that the modal have absolute position.</p>
<p>To solve this problem just set in the editGridRow the following option</p>
<p>recreateForm : true</p>
<p>This will recreate the form every time you click edit or add and place it at upper left corner of the grid.</p>
</p>
<p>Another solutuion is not to use jqModal - i.e set it to false</p>
<p>Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Fri, 09 Oct 2009 05:31:30 +0300</pubDate>
        </item>
        <item>
        	<title>Nathan on Top/Left For Form Load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/topleft-for-form-load#p10520</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/topleft-for-form-load#p10520</guid>
        	        	<description><![CDATA[<p>Hi:&#160; Just another question in regards to loading forms with the a grid.</p>
</p>
<p>I&#39;ve got the following:g.editGridRow(rowid,{top:0,left:0,height:450,width:450,reloadAfterSubmit:true,recreateForm:true,closeAfterEdit:true,modal:true,&#160;&#160;&#160; &#160;beforeSubmit:function(pdata){.....</p>
</p>
<p>where g is my grid.</p>
</p>
<p>I am trying to better understand the top and left parameters as my form never consistently loads in the same place.&#160; The position tends to be more of a relations of where the page is scrolled and not the top/left of the grid.</p>
</p>
<p>What I want is to consistently load any of the data entry forms at the same location on the page, with the top and left of the form always appearing at the top corner of the grid and running along it&#39;s left edge.</p>
</p>
<p>As per the docs:</p>
</p>
<table class="inline" border="0">
<tbody>
<tr class="row0">
<th class="col0">Property</th>
<th class="col1">Description</th>
<th class="col2">Default</th>
</tr>
<tr class="row1">
<td class="col0">top</td>
<td class="col1">the initial top position of modal dialog. The default value of 0 mean the top position from the upper left corner of the grid. When jqModal option is true (see below) and jqModal plugin is present any value different from 0 mean the top position from upper left corner of the window.</td>
<td class="col2">0</td>
</tr>
<tr class="row2">
<td class="col0">left</td>
<td class="col1">the initial left position of modal dialog. The default value of 0 mean the left position from the upper left corner of the grid. When jqModal option is true (see below) and jqModal plugin is present any value different from 0 mean the left position from upper left corner of the window.</td>
<td class="col2">0</td>
</tr>
</tbody>
</table>
<p>When I look below at jqModal/modal properties it just tells me whether or not it will use the modal.js file.&#160; If I change the top and left, ie</p>
</p>
<p>var ftop =&#160; $("#ProjectTabs").position().top + "px";<br />var fleft = $("#ProjectTabs").position().left + "px";</p>
<p>where #ProjectTabs is a jQuery UI tab interface.&#160; I was expecting the form to load at the top and left corner of the tab but it doesn&#39;t, it still loads elsewhere in the page and still seems to depend on the scrolled position.</p>
</p>
<p>Has anyone found a good way of setting the position for a modal form in a consistent position ?</p>
</p>
<p>Nathan</p>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 10:46:07 +0300</pubDate>
        </item>
</channel>
</rss>