<?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: Page shifts when adding new record</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/page-shifts-when-adding-new-record</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/page-shifts-when-adding-new-record/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Page shifts when adding new record</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/page-shifts-when-adding-new-record#p15006</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/page-shifts-when-adding-new-record#p15006</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>read carfully the docs.</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:how_to_install" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....to_install</a></p>
<p>You will need to add DOCTYPE</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 20 Feb 2010 12:46:57 +0200</pubDate>
        </item>
        <item>
        	<title>paulm on Page shifts when adding new record</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/page-shifts-when-adding-new-record#p14939</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/page-shifts-when-adding-new-record#p14939</guid>
        	        	<description><![CDATA[<p>I&#39;ve got a very simple form that has a jqGrid 3.6.4 on it. I&#39;ve stripped out everything I thought might be an issue - it&#39;s nothing more than a grid and a few buttons. The problem I&#39;m running into is when I click on the Add button the entire grid is shifted down (usually by the height of the popup). Here&#39;s a sample page to show what I&#39;m talking about:</p>
</p>
<p>&#60;html&#62;<br />&#60;head&#62;<br />&#60;link rel="stylesheet" media="screen" href="/css/ui.jqgrid.css" /&#62;</p>
<p>&#160;&#160;&#160; &#60;link rel="stylesheet" media="screen" href="/css/themes/black-tie/jquery-ui.css" /&#62;<br />&#160;&#160;&#160; &#60;script src="/js/jquery-1.3.2.min.js"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="/js/i18n/grid.locale-en.js"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="/js/jquery.jqGrid.min.js"&#62;&#60;/script&#62;&#160;&#160; &#160;<br />&#60;script&#62;</p>
<p>&#160;&#160;&#160; $(document).ready(function () {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#grdInvoice").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;<a href="http://localhost/GetInvoice.htm&#038;#39" rel="nofollow" target="_blank">http://localhost/GetInvoice.htm&#038;#39</a>;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Category&#39;, &#39;Part #&#39;, &#39;Description&#39;, &#39;Cost&#39;, &#39;PK&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Category&#39;, index: &#39;Category&#39;, width: 110, editable: true, edittype:"select", editoptions: {value:"A:A;B:B"} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;PartNumber&#39;, index: &#39;PartNumber&#39;, width: 170, editable: true, editoptions: { size: 20} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Description&#39;, index: &#39;Description&#39;, width: 200, editable: true, editoptions: { size: 30} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Cost&#39;, formatter: &#39;currency&#39;, align: "right", formatoptions: { prefix: "$" }, index: &#39;Cost&#39;, width: 95, editable: true, editoptions: { size: 10} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;PK&#39;, hidden: true, editable: false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "Invoice",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: "http://localhost/Nothing.htm"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#btnAdd").click(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#grdInvoice").jqGrid(&#39;editGridRow&#39;, "new", { height: 200, width:400, reloadAfterSubmit: false });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#btnEdit").click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var selRow = $("#grdInvoice").jqGrid("getGridParam", "selrow");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (selRow != null)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#grdInvoice").jqGrid("editGridRow", selRow);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Please select a row.");</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#btnDelete").click(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var selRow = $("#grdInvoice").jqGrid("getGridParam", "selrow");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (selRow != null)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#grdInvoice").jqGrid("delGridRow", selRow);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Please select a row.");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; });<br />&#160;&#160;&#160; &#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;input value="Add" /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;input value="Edit" /&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;input value="Delete" /&#62;<br />&#160;&#160; &#160;&#60;table /&#62;<br />&#160;&#160;&#160; <br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</p>
<p>Here&#39;s what the JSON data looks like:</p>
</p>
<p>{"total":"2","page":"1","records":"2","userdata":{"Customer":"Total","Amount":0.00,"Paid":0},"rows":[{"id":"0","cell":["2/15/2010","ABC123&#160; ","55555","Mr. Sample Customer","0.00","0","Open","/Invoice.aspx"]},{"id":"1","cell":["2/17/2010","ABC124&#160; ",null,"Mrs. Another Sample","0.00","0","Open","/Invoice.aspx"]}]}</p>
]]></description>
        	        	<pubDate>Thu, 18 Feb 2010 18:36:33 +0200</pubDate>
        </item>
</channel>
</rss>