<?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: jqGrid in Add/Edit form via custom_element issues HIERARCHY_REQUEST_ERR</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-in-addedit-form-via-custom_element-issues-hierarchy_request_err</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/jqgrid-in-addedit-form-via-custom_element-issues-hierarchy_request_err/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dr Tr0jan on jqGrid in Add/Edit form via custom_element issues HIERARCHY_REQUEST_ERR</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-in-addedit-form-via-custom_element-issues-hierarchy_request_err#p23851</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-in-addedit-form-via-custom_element-issues-hierarchy_request_err#p23851</guid>
        	        	<description><![CDATA[<p>I want to create jqGrid in Add/Edit form via column options:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1436' value='Select Code' data-codeid='sfcode1436' /></p>
<div class='sfcode' id='sfcode1436'>&#60;script&#62;<br />&#160; function myelem (value, options) {<br />&#160; &#160; var el = document.createElement(&#34;table&#34;);</p>
<p>&#160; &#160; $(el).jqGrid(<br />&#160; &#160; {<br />&#160; &#160; &#160; datatype: &#34;local&#34;,<br />&#160;       &#160; &#160; colNames:[&#39;&#39;,&#39;Name&#39;],<br />&#160;       &#160; &#160; colModel:[<br />&#160;               &#160; &#160; &#160; {name:&#39;id&#39;},<br />&#160;               &#160; &#160; &#160; {name:&#39;name&#39;},<br />&#160;       &#160; &#160; ]<br />&#160; &#160; });<br />&#160; <br />&#160; &#160; return el;<br />&#160; }</p>
<p>&#160; function myvalue(elem, operation, value) {}&#160;</p>
<p>&#160; jQuery(&#34;#grid&#34;).jqGrid({<br />&#160; &#160; &#8230;<br />&#160; &#160; colModel: [&#160;<br />&#160; &#160; &#160; ...&#160;<br />&#160; &#160; &#160; {<br />&#160; &#160; &#160; &#160; name:&#39;items&#39;,<br />&#160; &#160; &#160; &#160; ...,<br />&#160; &#160; &#160; &#160; editable:true,<br />&#160; &#160; &#160; &#160; edittype:&#39;custom&#39;,<br />&#160; &#160; &#160; &#160; editoptions:{<br />&#160; &#160; &#160; &#160; &#160; custom_element: myelem,<br />&#160; &#160; &#160; &#160; &#160; custom_value:myvalue}<br />&#160; &#160; &#160; },<br />&#160; &#160; &#160; ...<br />&#160; &#160; ]<br />&#160; &#160; &#8230;<br />&#160; });<br />&#60;/script&#62;&#160;</p>
</div>
<p>But i&#39;ve encoutered with problem. Browser issues error exception when i&#39;m clicking a add or edit buttons in main (#grid) table:</p>
<blockquote>
<p>SCRIPT5022: DOM Exception: HIERARCHY_REQUEST_ERR (3) <br />jquery-1.5.2.js, line 5148 character 5</p>
</blockquote>
<p>If i&#39;ve processed rendering of form table (&#160; $(el).jqGrid() ) in the custom_value function (myvalue()), the problem are not issuing. But the form table isn&#39;t displaying in the Add form in this case.</p>
</p>
<p>I can process rendering of form table in beforeShowForm event of Add/Edit form but consider that first solution is more righter than&#160;beforeShowForm.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;</div>
]]></description>
        	        	<pubDate>Mon, 04 Jul 2011 11:34:50 +0300</pubDate>
        </item>
</channel>
</rss>