<?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: How the setRowData construct the input's ID?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id</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/how-the-setrowdata-construct-the-inputs-id/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ivanchain on How the setRowData construct the input's ID?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16595</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16595</guid>
        	        	<description><![CDATA[<p>I got it, is my action order problem. only after the row is insert, the object control&#160;will be&#160;created.</p>
</p>
<p>Thank you, tony.</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Thu, 22 Apr 2010 03:50:42 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on How the setRowData construct the input's ID?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16565</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16565</guid>
        	        	<description><![CDATA[<p>hello tony,</p>
<p>I don&#39;t need to pass the id to the doBack() as parameter.<br />I want to use jQuery(&#39;#XXX&#39;) to find the control and deal with it, in fact, I need to css it, because the default button is very bad looking.</p>
<p>yours,<br />ivan</p>
]]></description>
        	        	<pubDate>Tue, 20 Apr 2010 17:58:40 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How the setRowData construct the input's ID?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16528</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16528</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can pas the id to the doBack() function as parameter</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 13:47:31 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on How the setRowData construct the input's ID?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16494</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-the-setrowdata-construct-the-inputs-id#p16494</guid>
        	        	<description><![CDATA[<p>hi,</p>
</p>
<p>&#160;jQuery("#list2").jqGrid({<br />&#160;&#160;&#160;&#160; datatype: &#39;local&#39;,<br />&#160;&#160;&#160; height:400,<br />&#160;&#160;&#160; colNames:[&#39;check&#39;,&#39;test&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;check&#39;&#39;, index:&#39;check&#39;&#39;, width:55, sorttype:&#39;int&#39;, hidden:true,align:&#39;center&#39;,classes:"JqGrid"},&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;test&#39;, index:&#39;test&#39;,width:75,align:&#39;center&#39;,classes:"JqGrid"}<br />&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160; pager: &#39;#pager2&#39;,<br />&#160;scroll: 0,<br />&#160;&#160;&#160; rowNum:0,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; caption: &#39;&#39;,<br />&#160;&#160;&#160; gridComplete: function(){<br />&#160;&#160;&#160; var ids = jQuery("#list2").jqGrid(&#39;getDataIDs&#39;);<br />&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; for(var i=0;i &#60; ids.length;i++)<br />&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160; var cl = ids[i];<br />&#160;&#160;&#160;&#160;&#160;&#160; be = "&#60;input style=&#39;width:75px;&#39; id=&#39;showreport" + i + "&#39; type=&#39;button&#39; value=&#39;look&#39; onclick="javascript:return doBack();"&#160; /&#62;"; <br />&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list2").jqGrid(&#39;setRowData&#39;,ids[i],{test:be});<br />&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;</p>
<p>&#160;&#160;&#160; }</p>
</p>
<p>hi, this is just like the demo, and it works fine. the test column will show the buttons. But I need to get the button&#39;s id, in order to do somthing else.</p>
</p>
<p>I tried:</p>
<p>jQuery("#showreport1").attr("value","123");</p>
<p>but no luck, it seems can&#39;t affact the button&#39;s value at all. I think maybe the jqgrid change the input button&#39;s id by itself?</p>
<p>Please tell me how it construct it.</p>
</p>
<p>yours,</p>
<p>Ivan</p></p>
]]></description>
        	        	<pubDate>Sat, 17 Apr 2010 12:44:33 +0300</pubDate>
        </item>
</channel>
</rss>