<?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: Space in colModel, name variable causes value to stay in form</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/space-in-colmodel-name-variable-causes-value-to-stay-in-form</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/space-in-colmodel-name-variable-causes-value-to-stay-in-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Space in colModel, name variable causes value to stay in form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/space-in-colmodel-name-variable-causes-value-to-stay-in-form#p16789</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/space-in-colmodel-name-variable-causes-value-to-stay-in-form#p16789</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is not allowed at. Names can not contain space.</p>
<p>Issue closed</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 29 Apr 2010 11:34:32 +0300</pubDate>
        </item>
        <item>
        	<title>SamH on Space in colModel, name variable causes value to stay in form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/space-in-colmodel-name-variable-causes-value-to-stay-in-form#p16633</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/space-in-colmodel-name-variable-causes-value-to-stay-in-form#p16633</guid>
        	        	<description><![CDATA[<p>if you have a grid setup with one of the column names with a space in it, the grid seems to save the value stored in that field in the add/edit forms.</p>
</p>
<pre>jQuery(document).ready(function(){ 
  jQuery("#list").jqGrid({
	editurl: &#39;http://localhost:2990/jira/plugins/servlet/jqGrid&#39;,
    datatype: &#39;clientSide&#39;,
    colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],
    colModel :[ 
      {name:&#39;inv id&#39;, index:&#39;invid&#39;, width:55, editable:true}, 
      {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90, editable:true}, 
      {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;, editable:true}, 
      {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;, editable:true}, 
      {name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;, editable:true}, 
      {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false, editable:true} 
    ],
    pager: &#39;#pager&#39;,
    rowNum:10,
    rowList:[10,20,30],
    sortname: &#39;invid&#39;,
    sortorder: &#39;desc&#39;,
    viewrecords: true,
    caption: &#39;My first grid&#39;,
    loadonce:true
  }).navGrid(&#39;#pager&#39;, {add:true, del:true},
						{reloadAfterSubmit: false, clearAfterAdd:false},
						{reloadAfterSubmit: false, clearAfterAdd:false});
}); 
</pre>
<p>try adding a row using the add button, close the form down and open the add form again, the inv id field will be already populated with the lastfield.</p>
</p>
<p>Any work arounds without having to have the name values without spaces?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Fri, 23 Apr 2010 19:01:49 +0300</pubDate>
        </item>
</channel>
</rss>