<?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: Bug with data import if element has no id</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-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/bugs/bug-with-data-import-if-element-has-no-id/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Bug with data import if element has no id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30537</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30537</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>You can not create a grid without id. The id is requierment.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 23 Apr 2014 14:29:30 +0300</pubDate>
        </item>
        <item>
        	<title>jplevene on Bug with data import if element has no id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30534</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30534</guid>
        	        	<description><![CDATA[<blockquote>
</blockquote>
<blockquote>
<p>tony said:</p>
<p>Hello,</p>
</p>
<p>I&#39;m little confused understanding the problem.</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>I have created a jqGrid (example below shows how it is done in jQuery) with no id:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3669' value='Select Code' data-codeid='sfcode3669' /></p>
<div class='sfcode' id='sfcode3669'>var _grid = $( &#34;&#60;table&#62;&#34;)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.appendTo( document )<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#8230;..<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</div>
<p>I now can&#39;t import JSON data as the grid does not have a unique id.</p>
<p> However the following will allow me to import data as I have declared an id:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8845' value='Select Code' data-codeid='sfcode8845' /></p>
<div class='sfcode' id='sfcode8845'>var _grid = $( &#34;&#60;table&#62;&#34;, { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#34;id&#34; : &#34;some_unique_id&#34;)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;})<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.appendTo( document )<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; &#8230;..<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</div>
<p>Notice this time I have declared an id</p>
]]></description>
        	        	<pubDate>Tue, 22 Apr 2014 23:59:43 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Bug with data import if element has no id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30437</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30437</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I&#39;m little confused understanding the problem.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 02 Apr 2014 16:21:34 +0300</pubDate>
        </item>
        <item>
        	<title>jplevene on Bug with data import if element has no id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30435</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-data-import-if-element-has-no-id#p30435</guid>
        	        	<description><![CDATA[<p>if the root element does not have an id, importing data casues a bug as it tries to reference :</p>
<p>"# tbody:first"</p>
<p>notice the space after #, as if the main element does not have an id, nothing is set here.</p>
<p>As my creation of the jqgrid was dyanmic, to counteract the bug I set the id during dynamic creation as follows:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9239' value='Select Code' data-codeid='sfcode9239' /></p>
<div class='sfcode' id='sfcode9239'>id : (function(){ return &#34;dynamic_grid&#34;+$(&#34;.ui-jqgrid&#34;).length })</div>
<p>This allows for multiple grids to be in the document, but adds a total amount of jqgrids in the document to the end of each id to make it unique.</p>
]]></description>
        	        	<pubDate>Wed, 02 Apr 2014 14:56:39 +0300</pubDate>
        </item>
</channel>
</rss>