<?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: Problem using search</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-using-search</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/problem-using-search/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>s0bz on Problem using search</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-using-search#p19880</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-using-search#p19880</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
</p>
<p>When i try to use the search feature (i write a text in the seach form, the errors come when i press enter) of jqGrid i get a JS error:</p>
</p>
<p>Uncaught SyntaxError: Unexpected token ILLEGAL --- jquery.jqGrid.min.js - line 21</p>
</p>
<p>I make the table with this code:</p>
</p>
<p>jQuery("#table").jqGrid({ datatype: "local"<br /> ,height: "auto"<br /> ,colNames:["ID","Name","Surname","Email"]<br /> ,colModel:[<br /> {name:&#39;ID&#39;, index:&#39;ID&#39;, width : 160, sortable : true, align: &#39;left&#39;, title: false, key:true}<br /> ,{name:&#39;Name&#39;, index:&#39;Name&#39;, width : 110, sortable : true, align: &#39;left&#39;, title: false}<br /> ,{name:&#39;Surname&#39;, index:&#39;Surname&#39;, width : 160, sortable : true, align: &#39;left&#39;, title: false}<br /> ,{name : &#39;Email&#39;, index:&#39;Email&#39;, width : 160, sortable : true, align: &#39;left&#39;, title: false}<br /> ]<br /> ,autowidth: true<br /> ,sortname: &#39;ID&#39;<br /> ,sortorder: "desc"<br /> ,rowNum: 20<br /> ,rowList: [20,40,60]<br /> ,pager: &#39;#tableDiv&#39;<br /> ,viewrecords: true<br /> ,onSelectRow: function (p_id) { edit(p_id) }<br /> }).navGrid(&#39;#tableDiv&#39;, {search:true, edit: false, add:true, del:false});</p>
</p>
<p>And i fill it with a code like this:</p>
</p>
<p>jQuery("#table").clearGridData();</p>
<p> var f,F = jsonData.length;<br /> for ( f=0; f&#60;F; f++ ) {<br /> $("#table").jqGrid(&#39;addRowData&#39;,jsonData[f]["ID"],jsonData[f]);<br /> }<br /> $("#table").setGridParam({rowNum:20}).trigger("reloadGrid");</p>
</p>
<p>What is wrong? I have looked everything but i cant fix it.</p>
</p>
<p>Very much thanks!</p>
]]></description>
        	        	<pubDate>Mon, 20 Sep 2010 14:36:10 +0300</pubDate>
        </item>
</channel>
</rss>