<?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 with 'filterToolbar'</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-filtertoolbar</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-with-filtertoolbar/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nicostabile on Problem with 'filterToolbar'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-filtertoolbar#p21063</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-filtertoolbar#p21063</guid>
        	        	<description><![CDATA[<p>Hi to all! i&#180;m new with jquery, first of all thanks about this great plugin.</p>
<p>I have a problem when i use filtertoolbar, when i search with the toolbar when i select the row that i want, the row_id is the id of the row of the original grid, but&#160;when i do &#160;&#160; var rows= jQuery("#list10").jqGrid(&#39;getRowData&#39;); the count of elements is only the result of the search. i do this into OnselectRow:</p>
<p>So if i select a result of the search i can&#180;t take the row_id correct.</p>
<p>This is my grid:</p>
</p>
<p>jQuery("#list10").jqGrid({<br />&#160;&#160; url: buildUurl, <br />&#160;datatype: "json",<br />&#160;&#160; &#160;colNames:[&#39;Id Propietario&#39;,&#39;Propietario&#39;,&#39;Nombre Propietario&#39;, &#39;Apellido Propietario&#39;],<br />&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:55, hidden:true},<br />&#160;&#160; &#160;&#160;{name:&#39;title&#39;,index:&#39;title&#39;, width:140}, &#160;<br />&#160;&#160;{name:&#39;nombre&#39;,index:&#39;nombre&#39;, width:140},<br />&#160;&#160; &#160;&#160;{name:&#39;apellido&#39;,index:&#39;apellido&#39;, width:140}, &#160;<br />&#160;&#160; &#160;],<br />&#160;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;pager: &#39;#pager10&#39;,<br />&#160;&#160; &#160;sortname: &#39;id&#39;,<br />&#160;loadonce:true,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; sortorder: "desc",<br />&#160;multiselect: false,<br />&#160;ignoreCase: true,<br />&#160;caption: "Propietarios",<br />&#160;onSelectRow: function(ids) {<br />&#160;&#160;if(ids == null) {<br />&#160;&#160;&#160;ids=0;<br />&#160;&#160;&#160;if(jQuery("#list10_d").jqGrid(&#39;getGridParam&#39;,&#39;records&#39;) &#62;0 )<br />&#160;&#160;&#160;{<br />&#160;&#160;&#160;&#160;var sl= jQuery("#list10").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);</p>
<p>&#160;&#160;&#160;&#160; var rows= jQuery("#list10").jqGrid(&#39;getRowData&#39;);<br />&#160;&#160;&#160;&#160;jQuery("#list10_d").jqGrid(&#39;setGridParam&#39;,{url:buildUurl2+"?id="+rows[sl][&#39;id&#39;],page:1});<br />&#160;&#160;&#160;&#160;jQuery("#list10_d").trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;jQuery("#list10_e").jqGrid(&#39;setGridParam&#39;,{url:buildUurl2+"?id="+rows[sl][&#39;id&#39;],page:1});<br />&#160;&#160;&#160;&#160;jQuery("#list10_e").trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;}<br />&#160;&#160;} else {<br />&#160;&#160;&#160;var sl= jQuery("#list10").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160;&#160;var rows= jQuery("#list10").jqGrid(&#39;getRowData&#39;);<br />&#160;&#160;&#160;jQuery("#list10_d").jqGrid(&#39;setGridParam&#39;,{url:buildUurl2+"?id="+rows[sl][&#39;id&#39;],page:1});<br />&#160;&#160;&#160;jQuery("#list10_d").trigger(&#39;reloadGrid&#39;);&#160;&#160;<br />&#160;&#160;&#160;jQuery("#list10_e").jqGrid(&#39;setGridParam&#39;,{url:buildUurl3+"?id="+rows[sl][&#39;id&#39;],page:1});<br />&#160;&#160;&#160;jQuery("#list10_e").trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;<br />&#160;&#160;}<br />&#160;}<br />});</p>
<p>&#160; jQuery("#list10").jqGrid(&#39;navGrid&#39;,&#39;#pgwidth&#39;,{edit:false,add:false,del:false,search:false}); <br />&#160; jQuery("#list10").jqGrid(&#39;filterToolbar&#39;,{stringResult: true,searchOnEnter : false,ignoreCase: true});</p>
<p>I this grid i work with other 2 grid and all is fine, but the result of filltertoolbar don&#180;t works correctly for me.</p>
<p>I hope that my question is clear,</p>
</p>
<p>thanks for all,</p>
</p>
<p>Nicol&#225;s.</p>
]]></description>
        	        	<pubDate>Wed, 01 Dec 2010 22:09:11 +0200</pubDate>
        </item>
</channel>
</rss>