<?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: Dynamic colmodel</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-colmodel-2</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/dynamic-colmodel-2/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Dynamic colmodel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-colmodel-2#p4777</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-colmodel-2#p4777</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use the new gridImport method. See the news for 3.4 release.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 02:45:13 +0200</pubDate>
        </item>
        <item>
        	<title>stephan on Dynamic colmodel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-colmodel-2#p4722</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-colmodel-2#p4722</guid>
        	        	<description><![CDATA[<p>I am trying to load the colNames and colModel dynamically. For this I retrieve a string (employeenr&#124;last_name&#124;first_name) by a JQuery AJAX call:</p>
<p>$.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: "GET",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: "AjaxData.ashx",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: "datatype=employees&#38;what=columnnames",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function(columnNames){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#grdEmployees").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:columnNames.split(&#39;&#124;&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]</p>
</p>
<p>This works fine for the colNames property, but I can&#39;t figure out how to load colModel dynamically, since this is a multi-dimensional array and simply splitting on a single character like I do with colNames, doesn&#39;t work:</p>
<p>name:&#39;employeenr&#39;, index:&#39;employeenr&#39;, width:100, editable: true, edittype: &#39;text&#39;, editoptions: {size:6, maxlength:6}&#124;</p>
<p>name:&#39;last_name&#39;, index:&#39;last_name&#39;, width:100, editable: true, edittype: &#39;text&#39;, editoptions: {size:6, maxlength:6}&#124;</p>
<p>name:&#39;first_name&#39;, index:&#39;first_name&#39;, width:100, editable: true, edittype: &#39;text&#39;, editoptions: {size:6, maxlength:6}</p>
</p>
<p>Does anyone have a clue how I should dynamically load colNames and colModel?</p>
]]></description>
        	        	<pubDate>Wed, 18 Feb 2009 09:09:58 +0200</pubDate>
        </item>
</channel>
</rss>