<?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: passing cell content as parameters</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters</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/passing-cell-content-as-parameters/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>violinssoundcool on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p5084</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p5084</guid>
        	        	<description><![CDATA[<p>So, you&#39;re saying that the returned JSON string for the grid as a subgrid needs to include rows, page, total, records, etc.?&#160; Because it looks like in the docs that I only need to include "rows."&#160;</p>
]]></description>
        	        	<pubDate>Tue, 03 Mar 2009 07:53:26 +0200</pubDate>
        </item>
        <item>
        	<title>tony on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4897</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4897</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In your case grid as subgrid - the subgrid is simple grid - so the json format should be the same as those of the main grid.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 24 Feb 2009 09:17:43 +0200</pubDate>
        </item>
        <item>
        	<title>violinssoundcool on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4895</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4895</guid>
        	        	<description><![CDATA[<p>Hi.&#160; I&#39;m not sure that you understood my question.&#160; I have tried the exact format of the string you suggested from the demo site.&#160; However, it still doesn&#39;t work when applying it to the subgrid.&#160; So, it appears to me as though either I need to include more parameters like &#8220;rows&#8221; or something is wrong with my JQuery code which is as follows:</p>
</p>
<p>subGrid: true,<br />subGridRowExpanded: function(subgrid_id, row_id) <br />{<br />&#160; var subgrid_table_id;<br />&#160; subgrid_table_id = subgrid_id+&#8221;_t&#8221;;<br />&#160; jQuery(&#8221;#&#8221;+subgrid_id).html(&#8221;&#60;table id=&#39;&#8221;+subgrid_table_id+&#8221;&#39;</p>
<p>&#160; class=&#39;scroll&#39;&#62;&#60;/table&#62;&#8221;);<br />&#160; jQuery(&#8221;#&#8221;+subgrid_table_id).jqGrid(<br />&#160; {<br />&#160;&#160;&#160; url:&#8221;inv0003?id=&#8221;+row_id,<br />&#160;&#160;&#160; datatype: &#8220;json&#8221;,<br />&#160;&#160;&#160; //mtype: GET,<br />&#160;&#160;&#160; colNames: [&#39;Division&#60;br /&#62;Number&#39;,&#39;Name&#39;,&#39;On Hand&#60;br /&#62;Weight&#39;,&#39;% of&#60;br /&#62;Total&#39;,&#39;Per Lb&#60;br /&#62;Cost&#39;,&#39;Avg Monthly&#60;br /&#62;Sales&#39;,&#39;Months&#60;br /&#62;Supply&#39;,&#39;Turnover&#60;br /&#62;Rate&#39;],<br />&#160;&#160;&#160; colModel: <br />&#160;&#160;&#160; [<br />&#160;&#160;&#160;&#160;&#160; {name:"divisionNumber",index:"divNum",width:80,key:true},<br />&#160;&#160;&#160;&#160;&#160; {name:"divisionName",index:"divName",width:130},<br />&#160;&#160;&#160;&#160;&#160; {name:"onHandWeight",index:"ohWeight",width:80,align:"right"},<br />&#160;&#160; {name:"percentOfTotal",index:"pctOfTotal",width:80,align:"right"},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;{name:"perLbCost",index:"perLbCost",width:100,align:"right",sortable:false},<br />&#160;{name:"avgMonthlyWeight",index:"avgMonthlySales",width:80,align:"right",sortable:true},<br />&#160;{name:"monthsSupply",index:"monthsSupply",width:80,align:"right",sortable:true},<br />&#160;{name:"turnoverRate",index:"turnRate",width:80,align:"center",sortable:true},<br />&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160; height: 100,<br />&#160;&#160;&#160;&#160;&#160; rowNum:20,<br />&#160;&#160;&#160;&#160;&#160; imgpath: &#8220;../javascript/JQGrid/themes/green/images&#8221;,<br />&#160;&#160;&#160;&#160;&#160; sortname: &#39;divisionNumber&#39;,<br />&#160;&#160;&#160;&#160;&#160; sortorder: &#8220;asc&#8221;<br />&#160;&#160;&#160; });<br />&#160; },</p>
]]></description>
        	        	<pubDate>Tue, 24 Feb 2009 09:02:19 +0200</pubDate>
        </item>
        <item>
        	<title>tony on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4868</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4868</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Why do not see the examples in the docs? They speak quite.</p>
<p>One possible solution (from demo site):</p>
<pre>{"rows":[{"id":"1","cell":["1","item 1","2.00","100.00","200.00"]},{"id":"2","cell":["2","item 2","3<br />.00","50.00","150.00"]},{"id":"3","cell":["3","item 3","1.00","50.00","50.00"]},{"id":"4","cell":["4"<br />,"item 4","1.00","200.00","200.00"]}]}<br /><br /></pre>
]]></description>
        	        	<pubDate>Tue, 24 Feb 2009 07:27:27 +0200</pubDate>
        </item>
        <item>
        	<title>violinssoundcool on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4802</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4802</guid>
        	        	<description><![CDATA[<p>Okay.&#160; I got the JQGrid to assign an id to the row that&#39;s equivalent to the data in fhe first column of each row.&#160; I have the returned JSON string in the correct format.&#160; However, I&#39;m unsure as to what kind of variables I need to pass in the beginning.&#160; For instance, right now, I have</p>
<p>{"rows":[{"divisionNumber":..........}]}</p>
<p>Do I need to specify more things than just "rows"?&#160; Because although the JSON string is correct, the subgrid is not being populated.</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 10:07:21 +0200</pubDate>
        </item>
        <item>
        	<title>tony on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4795</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4795</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Since you use the subGridRowExpanded as of documentation:</p>
<p>This event is raised when the subgrid is enabled and is executed when the user clicks on the plus icon of the grid. Can be used to put custom data in the subgrid.</p>
<ul>
<li> <em>pID</em> is the unique id of the div element where we can put contents when subgrid is enabled, </li>
<li> <em>id</em> is the id of the row </li>
</ul>
<p>If you have the id then you can $("#mygrid").getRowData( id ) - this retun all the values from the current clicked row and before constructing the grid you can pass what you want from this array</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 09:25:25 +0200</pubDate>
        </item>
        <item>
        	<title>violinssoundcool on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4792</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4792</guid>
        	        	<description><![CDATA[<p>I have a JQGrid that produces a table with eight columns (not including the one reserved for the plus/minus signs).&#160; When I click the plus sign, I would like to pass the contents of the selected row&#39;s first column as a parameter to the server-side program.&#160;</p>
<p>For instance, if the first column is "Customer Number," and I click the plus sign on the row that has a customer number of "0001," then, I would like for the program call to appear something like "svrpgm?custNum=0001".</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 09:08:11 +0200</pubDate>
        </item>
        <item>
        	<title>tony on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4784</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4784</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think there must be better explanation of your problem</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 03:07:37 +0200</pubDate>
        </item>
        <item>
        	<title>violinssoundcool on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4754</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4754</guid>
        	        	<description><![CDATA[<p>I&#39;m not sure that I understand.&#160; Where in my code would I put the beforeSubmit function?&#160; within the subGridRowExpanded function?</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 14:47:25 +0200</pubDate>
        </item>
        <item>
        	<title>YamilBracho on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4744</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4744</guid>
        	        	<description><![CDATA[<p>You can use the beforeSubmit event to do that. For example:</p>
<p>&#160;beforeSubmit: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var sr = jQuery("#list").getGridParam(&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var rowData = jQuery("#list").getRowData(sr);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.editData = {"NU_RIF_EMPRESA" : rowData[&#39;NU_RIF_EMPRESA&#39;]};<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; retarr = {"NU_RIF_EMPRESA" : rowData[&#39;NU_RIF_EMPRESA&#39;]};<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return retarr; <br />&#160; }</p>
<p>Here I take the field NU:RIF_Empresa and add it to my QueryString data..</p>
</p>
<p>HTH</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 09:34:56 +0200</pubDate>
        </item>
        <item>
        	<title>violinssoundcool on passing cell content as parameters</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4720</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/passing-cell-content-as-parameters#p4720</guid>
        	        	<description><![CDATA[<p>I&#39;m building a grid as a subgrid and trying to pass the contents of the first column to the program as a parameter.&#160; From the examples, I&#39;ve seen how to pass the row number, but I need to retrieve the first cell contents.&#160; Is there currently a way to do this?</p>
]]></description>
        	        	<pubDate>Wed, 18 Feb 2009 08:33:27 +0200</pubDate>
        </item>
</channel>
</rss>