<?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: Bug in predefined action</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action</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/bug-in-predefined-action/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Bug in predefined action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24256</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24256</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Strange. Could you please try first with simple alerts instead of so complex code.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 14 Aug 2011 10:53:10 +0300</pubDate>
        </item>
        <item>
        	<title>NoiZy83 on Bug in predefined action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24202</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24202</guid>
        	        	<description><![CDATA[<p>Hmm...I don&#39;t get it ;(</p>
<p>&#160;I tried this one:</p>
</p>
<p>colModel: [  {name:&#39;aktion&#39;, index:&#39;aktion&#39;, title: false, width:&#39;40&#39;, align:&#39;left&#39;, search: false, formatter: &#39;actions&#39;, <br /> formatoptions:<br /> {<br /> editbutton: false,<br /> delOptions: { afterShowForm: function (form) { var grid = jQuery(&#39;#listAnhangListe&#39;); var dlgDiv = form.closest(&#39;div.ui-jqdialog&#39;); var parentDiv = dlgDiv.parent(); var dlgWidth = dlgDiv.width(); var parentWidth = parentDiv.width(); var dlgHeight = dlgDiv.height(); var parentHeight = parentDiv.height(); var dialog = form.closest(&#39;div.ui-jqdialog&#39;), selRowId = grid.jqGrid(&#39;getGridParam&#39;, &#39;selrow&#39;), selRowCoordinates = $(&#39;#&#39; + selRowId).offset(); selRowCoordinates[&#39;top&#39;] = Math.round((parentHeight - dlgHeight) / 2) - 100; selRowCoordinates[&#39;left&#39;] = Math.round((parentWidth - dlgWidth) / 2); dialog.offset(selRowCoordinates); } } }}, {name:&#39;referenztyp&#39;, index:&#39;referenztyp&#39;, title: false, align:&#39;left&#39;, hidden: true}, {name:&#39;referenzid1&#39;, index:&#39;referenzid1&#39;, title: false, align:&#39;left&#39;, hidden: true}, {name:&#39;referenzid2&#39;, index:&#39;referenzid2&#39;, title: false, align:&#39;left&#39;, hidden: true},]</p>
<p>But it doesent work (It is the same code like in the pager) , my Google Chrome said that he can&#39;t set the property top of a null object!</p>
</p>
<p>Best regards</p>
]]></description>
        	        	<pubDate>Tue, 09 Aug 2011 12:09:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Bug in predefined action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24198</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24198</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is not a bug, but feature.</p>
<p>Options set in the toolbar does not have correlation with these set in formatter action.</p>
<p>In order to to set this create a variable object once and set it in the edit options and in formatter object.</p>
<p>See docs for this formatter:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:predefined_formatter" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>....._formatter</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 09 Aug 2011 11:35:09 +0300</pubDate>
        </item>
        <item>
        	<title>NoiZy83 on Bug in predefined action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24196</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-in-predefined-action#p24196</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I just want to report a bug with the predefined formatter "<span style="white-space: pre;">actions".</span></p>
<p><span style="white-space: pre;">I need 1 day to find out that it have something to do with the formatter...</span></p>
</p>
<p><span style="white-space: pre;">The situation is following.</span></p>
<p><span style="white-space: pre;">I use one column with the formatter actions, and  I use this peace of code:</span></p>
</p>
<pre>jQuery(&#39;#list&#39;).jqGrid(&#39;navGrid&#39;,&#160;&#39;#pager&#39;,&#160;{&#160;del:&#160;true,&#160;add:&#160;false,&#160;edit:&#160;false,&#160;search:&#160;false&#160;},&#160;{},
		{},
		{&#160;afterShowForm:&#160;function&#160;(form)&#160;{
			var&#160;grid&#160;=&#160;jQuery(&#39;#list&#39;);
			var&#160;dlgDiv&#160;=&#160;form.closest(&#39;div.ui-jqdialog&#39;);
			var&#160;parentDiv&#160;=&#160;dlgDiv.parent();
			var&#160;dlgWidth&#160;=&#160;dlgDiv.width();
			var&#160;parentWidth&#160;=&#160;parentDiv.width();
			var&#160;dlgHeight&#160;=&#160;dlgDiv.height();
			var&#160;parentHeight&#160;=&#160;parentDiv.height();
 
 
			var&#160;dialog&#160;=&#160;form.closest(&#39;div.ui-jqdialog&#39;),&#160;selRowId&#160;=&#160;grid.jqGrid(&#39;getGridParam&#39;,&#160;&#39;selrow&#39;),&#160;selRowCoordinates&#160;=&#160;$(&#39;#&#39;&#160;+&#160;selRowId).offset();
 
			selRowCoordinates["top"]&#160;=&#160;Math.round((parentHeight&#160;-&#160;dlgHeight)&#160;/&#160;2)&#160;-&#160;100;
			selRowCoordinates["left"]&#160;=&#160;Math.round((parentWidth&#160;-&#160;dlgWidth)&#160;/&#160;2);
 
			dialog.offset(selRowCoordinates);
		}
		});</pre>
<pre></pre>
<pre>Which is by the way not perfect, because I have to subtract the 100px but thats not important.</pre>
<pre>Important is, this afterShowForm event is only fired if I cklick the delete button on the pager but not if I click the delete button in the predefined formatter column.</pre>
<pre>Which do both the same, excluding firing the event.</pre>
<pre></pre>
<pre>I hope you can fix it.</pre>
<pre></pre>
<pre></pre>
<pre>Best regards</pre>
]]></description>
        	        	<pubDate>Tue, 09 Aug 2011 10:07:03 +0300</pubDate>
        </item>
</channel>
</rss>