<?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: Generic grid with dynamic colnames and colmodel</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/generic-grid-with-dynamic-colnames-and-colmodel</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/generic-grid-with-dynamic-colnames-and-colmodel/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tiancris on Generic grid with dynamic colnames and colmodel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/generic-grid-with-dynamic-colnames-and-colmodel#p20296</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/generic-grid-with-dynamic-colnames-and-colmodel#p20296</guid>
        	        	<description><![CDATA[<p>I do that with something like this:</p>
</p>
<p>/****** File: grid.js ******/</p>
<p>jQuery("#tableSalesBoard").jqGrid({</p>
<p>caption: caption,</p>
<p>url: url,</p>
<p>colNames: colNames,</p>
<p>colModel: colModel</p>
<p>.....</p>
<p>.....</p>
<p>})</p>
</p>
<p>/***** File: grid_sales.php *****/</p>
<p>&#60;script type="text/javascript"&#62;</p>
<p>var &#160;caption = "Sales";</p>
<p>var url = "sales.php";</p>
<p>var colNames = [&#39;Date&#39;, &#39;Item&#39;, &#39;Amount&#39;];</p>
<p>var colModel = [... options for this columns...] ;</p>
<p>&#60;/script&#62;</p>
<p>&#60;script type="text/javascript" src="grid.js"&#62;&#60;/script&#62;</p>
</p>
<p>And you can set this configuration in another file, eg: grid_customers.php, and then include "grid.js". Of course, the file in var url must give the appropriate&#160;resultset.</p>
</p>
<p>Hope this helps!</p>
]]></description>
        	        	<pubDate>Wed, 13 Oct 2010 22:31:53 +0300</pubDate>
        </item>
        <item>
        	<title>gundla.junk@gmail.com on Generic grid with dynamic colnames and colmodel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/generic-grid-with-dynamic-colnames-and-colmodel#p20195</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/generic-grid-with-dynamic-colnames-and-colmodel#p20195</guid>
        	        	<description><![CDATA[<p>Dear Jqgrid team,</p>
</p>
<p>great plugin...quick question, can i have a generic grid with ability to set colnames and colmodel to valid arrays using setgridparam or any other method ??</p>
<p>i have read in the documentation that these options cannot be changes, but i am guessing i am missing something.</p>
<p>thanks</p>
<p>ravi</p>
]]></description>
        	        	<pubDate>Fri, 08 Oct 2010 00:41:56 +0300</pubDate>
        </item>
</channel>
</rss>