<?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: search the table can not work</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/search-the-table-can-not-work</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/search-the-table-can-not-work/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lazeman on search the table can not work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/search-the-table-can-not-work#p21858</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/search-the-table-can-not-work#p21858</guid>
        	        	<description><![CDATA[<p>I used the jqgrid in asp.net with a simple application,the data come from an array,when click the search</p>
<p>button of the grid,the search toolbar can not click,and the table is gray,can not make further operate,i don&#39;t</p>
<p>know the reason.</p>
</p>
<p>The code is listed below:</p>
</p>
<pre>-------------------------------------------------</pre>
<pre>&#60;%@&#160;Page&#160;Title="Home&#160;Page"&#160;Language="C#"&#160;AutoEventWireup="true" CodeBehind="Default.aspx.cs"&#160;</pre>
<pre>Inherits="WebTest._Default"&#160;%&#62;</pre>
<pre><br /> <br />&#60;!DOCTYPE&#160;html&#160;PUBLIC&#160;"-//W3C//DTD&#160;XHTML&#160;1.0&#160;Strict//EN"&#160;"http://www.w3.org</pre>
<pre>/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;</pre>
<pre>&#60;html&#160;xmlns="http://www.w3.org/1999/xhtml"&#160;xml:lang="en"&#62;</pre>
<pre><br />&#60;head&#160;id="Head1"&#160;runat="server"&#62;</pre>
<pre><br />	&#60;title&#62;&#60;/title&#62;</pre>
<pre><br />	<br />		&#60;script&#160;type="text/javascript"&#160;src="Scripts/jquery-1.4.1.min.js"&#62;&#160;&#60;/script&#62;</pre>
<pre><br />	&#60;link&#160;href="styles/jquery-ui-1.8.2.custom.css"&#160;rel="Stylesheet"&#160;type="text/css"&#160;/&#62;</pre>
<pre><br />	&#60;link&#160;href="styles/ui.jqgrid.css"&#160;rel="Stylesheet"&#160;type="text/css"&#160;/&#62;</pre>
<pre><br />	&#60;link&#160;href="styles/ui.multiselect.css"&#160;rel="stylesheet"&#160;type="text/css"&#160;/&#62;</pre>
<pre><br />	&#60;script&#160;type="text/javascript"&#160;src="Scripts/jquery-ui-1.8.2.custom.min.js"&#62;&#60;/script&#62;</pre>
<pre><br />	&#60;script&#160;type="text/javascript"&#160;src="Scripts/jquery.layout.js"&#62;&#60;/script&#62;</pre>
<pre><br />	&#60;script&#160;type="text/javascript"&#160;src="Scripts/jquery.searchFilter.js"&#62;&#60;/script&#62;</pre>
<pre><br />	&#60;script&#160;type="text/javascript"&#160;src="Scripts/grid.locale-cn.js"&#62;&#60;/script&#62;</pre>
<pre><br />	&#60;script&#160;type="text/javascript"&#62;</pre>
<pre><br />		//$.jgrid.no_legacy_api&#160;=&#160;true; //when added this, a exception of no method name of</pre>
<pre></pre>
<pre>                      "navGrid" appeared.</pre>
<pre><br />		//$.jgrid.useJSON&#160;=&#160;true;&#160;</pre>
<pre><br />	&#60;/script&#62;&#160;</pre>
<pre><br />	&#60;script&#160;type="text/javascript"&#160;src="Scripts/jquery.jqGrid.min.js"&#62;&#60;/script&#62;</pre>
<pre><br />	&#60;script&#160;type="text/javascript"&#160;src="Scripts/ui.multiselect.js"&#62;&#60;/script&#62;</pre>
<pre><br />	<br />	&#60;script&#160;type="text/javascript"&#62;</pre>
<pre><br />		$(document).ready(</pre>
<pre><br />			function&#160;()&#160;{</pre>
<pre>			jQuery("#list4").jqGrid({</pre>
<pre><br />					datatype:&#160;"local",</pre>
<pre><br />			//		height:&#160;200,</pre>
<pre><br />					colNames:&#160;[&#39;Inv&#160;No&#39;,&#160;&#39;Date&#39;,&#160;&#39;Client&#39;,&#160;&#39;Amount&#39;,&#160;&#39;Tax&#39;,&#160;&#39;Total&#39;,&#160;&#39;Notes&#39;],</pre>
<pre><br />					colModel:&#160;[</pre>
<pre><br />		{&#160;name:&#160;&#39;id&#39;,&#160;index:&#160;&#39;id&#39;,&#160;width:&#160;60,&#160;sorttype:&#160;"int"&#160;},</pre>
<pre><br />		{&#160;name:&#160;&#39;invdate&#39;,&#160;index:&#160;&#39;invdate&#39;,&#160;width:&#160;90,&#160;sorttype:&#160;"date"&#160;},</pre>
<pre><br />		{&#160;name:&#160;&#39;name&#39;,&#160;index:&#160;&#39;name&#39;,&#160;width:&#160;100&#160;},</pre>
<pre><br />		{&#160;name:&#160;&#39;amount&#39;,&#160;index:&#160;&#39;amount&#39;,&#160;width:&#160;80,&#160;align:&#160;"right",&#160;sorttype:&#160;"float"&#160;},</pre>
<pre><br />		{&#160;name:&#160;&#39;tax&#39;,&#160;index:&#160;&#39;tax&#39;,&#160;width:&#160;80,&#160;align:&#160;"right",&#160;sorttype:&#160;"float"&#160;},</pre>
<pre><br />		{&#160;name:&#160;&#39;total&#39;,&#160;index:&#160;&#39;total&#39;,&#160;width:&#160;80,&#160;align:&#160;"right",&#160;sorttype:&#160;"float"&#160;},</pre>
<pre><br />		{&#160;name:&#160;&#39;note&#39;,&#160;index:&#160;&#39;note&#39;,&#160;width:&#160;150,&#160;sortable:&#160;false&#160;}</pre>
<pre><br />	],</pre>
<pre><br />					rowNum:&#160;10,</pre>
<pre><br />					rowList:&#160;[10,&#160;20,&#160;30],</pre>
<pre><br />					pager:&#160;&#39;#pager5&#39;,</pre>
<pre><br />					multiselect:&#160;true,</pre>
<pre><br />					caption:&#160;"Manipulating&#160;Array&#160;Data"</pre>
<pre><br />	}).navGrid("#pager5",&#160;{&#160;edit:&#160;false,&#160;add:&#160;false,&#160;del:&#160;false,&#160;search:&#160;true&#160;});&#160;;</pre>
<pre><br />				var&#160;mydata&#160;=&#160;[</pre>
<pre><br />	{&#160;id:&#160;"1",&#160;invdate:&#160;"2007-10-01",&#160;name:&#160;"test",&#160;note:&#160;"note",&#160;amount:&#160;"200.00",&#160;tax:&#160;"10.00",&#160;total:&#160;"210.00"&#160;},</pre>
<pre><br />	{&#160;id:&#160;"2",&#160;invdate:&#160;"2007-10-02",&#160;name:&#160;"test2",&#160;note:&#160;"note2",&#160;amount:&#160;"300.00",&#160;tax:&#160;"20.00",&#160;total:&#160;"320.00"&#160;},</pre>
<pre><br />	{&#160;id:&#160;"3",&#160;invdate:&#160;"2007-09-01",&#160;name:&#160;"test3",&#160;note:&#160;"note3",&#160;amount:&#160;"400.00",&#160;tax:&#160;"30.00",&#160;total:&#160;"430.00"&#160;},</pre>
<pre><br />	{&#160;id:&#160;"4",&#160;invdate:&#160;"2007-10-04",&#160;name:&#160;"test",&#160;note:&#160;"note",&#160;amount:&#160;"200.00",&#160;tax:&#160;"10.00",&#160;total:&#160;"210.00"&#160;},</pre>
<pre></pre>
<pre>	{&#160;id:&#160;"5",&#160;invdate:&#160;"2007-10-05",&#160;name:&#160;"test2",&#160;note:&#160;"note2",&#160;amount:&#160;"300.00",&#160;tax:&#160;"20.00",&#160;total:&#160;"320.00"&#160;},</pre>
<pre><br />	{&#160;id:&#160;"6",&#160;invdate:&#160;"2007-09-06",&#160;name:&#160;"test3",&#160;note:&#160;"note3",&#160;amount:&#160;"400.00",&#160;tax:&#160;"30.00",&#160;total:&#160;"430.00"&#160;},</pre>
<pre><br />	{&#160;id:&#160;"7",&#160;invdate:&#160;"2007-10-04",&#160;name:&#160;"test",&#160;note:&#160;"note",&#160;amount:&#160;"200.00",&#160;tax:&#160;"10.00",&#160;total:&#160;"210.00"&#160;},</pre>
<pre><br />	{&#160;id:&#160;"8",&#160;invdate:&#160;"2007-10-03",&#160;name:&#160;"test2",&#160;note:&#160;"note2",&#160;amount:&#160;"300.00",&#160;tax:&#160;"20.00",&#160;total:&#160;"320.00"&#160;},</pre>
<pre><br />	{&#160;id:&#160;"9",&#160;invdate:&#160;"2007-09-01",&#160;name:&#160;"test3",&#160;note:&#160;"note3",&#160;amount:&#160;"400.00",&#160;tax:&#160;"30.00",&#160;total:&#160;"430.00"&#160;}</pre>
<pre><br />	];</pre>
<pre><br />				for&#160;(var&#160;i&#160;=&#160;0;&#160;i&#160;&#60;=&#160;mydata.length;&#160;i++)</pre>
<pre><br />					jQuery("#list4").jqGrid(&#39;addRowData&#39;,&#160;i&#160;+&#160;1,&#160;mydata[i]);</pre>
<pre><br /> <br />			}</pre>
<pre><br />		);</pre>
<pre><br />	&#60;/script&#62;</pre>
<pre><br />&#60;/head&#62;</pre>
<pre><br />&#60;body&#62;</pre>
<pre><br />	&#60;form&#160;id="Form1"&#160;runat="server"&#62;</pre>
<pre><br />	&#60;br&#160;/&#62;</pre>
<pre><br />		&#60;table&#160;id="list4"&#62;</pre>
<pre><br />		&#60;/table&#62;</pre>
<pre><br />		&#60;div&#160;id="pager5"&#62;&#60;/div&#62;<br />&#60;/form&#62;</pre>
<pre><br />&#60;/body&#62;</pre>
<pre><br />&#60;/html&#62;</pre>
<pre></pre>
<pre>--------------------------------------------------------------------------</pre>
<pre>when I click the search button,the search toolbar display on the top of the grid,and the toolbar and the grid </pre>
<pre>are gray and can not operator through mouse,but when use "TAB",it do work correctly. Why??</pre>
<pre></pre>
<pre><div>[Image Can Not Be Found]</div><div>[Image Can Not Be Found]</div><div>[Image Can Not Be Found]</div></pre>
]]></description>
        	        	<pubDate>Thu, 27 Jan 2011 23:33:36 +0200</pubDate>
        </item>
</channel>
</rss>