<?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: Can't get editForm's Elm immediately first time or each time when recreateForm:true</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue</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/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>waiting on Can't get editForm's Elm immediately first time or each time when recreateForm:true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue#p17852</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue#p17852</guid>
        	        	<description><![CDATA[<p>Thanks. It&#39;s solved by use setTimeout , and some time useful for&#160; editoptions:dataInit.</p></p>
]]></description>
        	        	<pubDate>Thu, 10 Jun 2010 11:01:50 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Can't get editForm's Elm immediately first time or each time when recreateForm:true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue#p17793</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue#p17793</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is true. You can use setTimeout whiint the afterShow form to make what you want.</p>
<p>This is not a bug.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 08 Jun 2010 14:53:09 +0300</pubDate>
        </item>
        <item>
        	<title>waiting on Can't get editForm's Elm immediately first time or each time when recreateForm:true</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue#p17774</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/cant-get-editforms-elm-immediately-first-time-or-each-time-when-recreateformtrue#p17774</guid>
        	        	<description><![CDATA[<p>Hi tony,</p>
<p>It seems a async problem,</p>
<p>i want to change the selected item every time by click btn-edit or afterclickPgButtons, but at first i cannot get the select element.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3477' value='Select Code' data-codeid='sfcode3477' /></p>
<div class='sfcode' id='sfcode3477'>
<p>{name: &#39;pstitle&#39;, index:&#39;pstitle&#39;, width: 150, editable: true, searchoptions:{sopt: [&#39;xx&#39;]},<br />&#160;&#160; &#160;&#160;&#160;&#160; edittype: &#39;select&#39;,<br />&#160;&#160; &#160;&#160;&#160;&#160; editoptions: {<br />&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160;&#160; dataUrl: &#39;comm_crud_aj.php?aj=1&#39;<br />&#160; &#160;&#160; &#160;&#160; }<br />&#160;},</p>
</p>
<p>{reloadAfterSubmit: false, jqModal: false, closeOnEscape: true, closeAfterEdit: true,<br />&#160;&#160; &#160; recreateForm: false,<br />&#160;&#160; &#160; afterShowForm: function(formid) {<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; // alert(&#39;wait some time&#8230;&#39;);<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; var sel = $(&#39;#pstitle&#39;); // this elm dynamic created under &#39;FrmGrid_listGrid&#39;(formid)<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; if (sel[0]) {<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; alert(&#39;elm exists&#39;);<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; else {<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; alert(&#39;elm NOT exists&#39;);<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160; }<br />&#160;},&#160;&#160; &#160;// edit options&#160;&#160; &#160;</p>
</div>
<p>first time click btn-edit is alert &#39;elm NOT exists&#39;,&#160; if i add "alert(&#39;wait some time&#8230;&#39;);" before elm-catching then &#39;elm exists&#39;. or if change to this no problem</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6329' value='Select Code' data-codeid='sfcode6329' /></p>
<div class='sfcode' id='sfcode6329'>
<p>&#160;editoptions: {<br />&#160; &#160;&#160;&#160;&#160; value: {1: &#39;a&#39;, 2: &#39;b&#39;, 3: &#39;c&#39;}<br />&#160;}</p>
</div>
<p>I think if use ajax ( dataUrl: &#39;comm_crud_aj.php?aj=1&#39; ) to get data dynamically the code catching elm under edit-form within the event beforeShowForm/afterShowForm can not work correctly , cause of wrong order working together with async-ajax .</p>
]]></description>
        	        	<pubDate>Mon, 07 Jun 2010 05:12:50 +0300</pubDate>
        </item>
</channel>
</rss>