<?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: jqGrid client-side searching with filterToolbar</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-client-side-searching-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/jqgrid-client-side-searching-with-filtertoolbar/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jqGrid client-side searching with filterToolbar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-client-side-searching-with-filtertoolbar#p29521</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-client-side-searching-with-filtertoolbar#p29521</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I&#39;m not sure, but you set id:&#207;D but it is not in the colModel.</p>
<p>Irecommend you to set key: true in a column which has unique values by example:</p>
<p> name: &#39;TeamID&#39;, index: &#39;TeamID&#39;, width: 55, search: true, sorttype: &#39;int&#39;, <strong>key: true<br /></strong></p>
<p>Also can you please post a simple data returned from the server?, so that I can see what is happen.<br />Thank you</p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Mon, 23 Sep 2013 14:14:15 +0300</pubDate>
        </item>
        <item>
        	<title>aram87 on jqGrid client-side searching with filterToolbar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-client-side-searching-with-filtertoolbar#p29517</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-client-side-searching-with-filtertoolbar#p29517</guid>
        	        	<description><![CDATA[<p>I am trying to enable the client-side searching feature of the jqGrid through the filterToolbar method, yet I am unable to make it work. The grid is loading data correctly through JSON that is being returned from an asmx service on page load (document.ready), yet when I try to search through any of the columns using the search toolbar, the grid only refreshes without searching.</p>
<p>I have already checked other similar questions and their answers, but none of them helped me solve my issue. Maybe someone can check my jqGrid script below and tell me what is wrong with it or what is there missing. For the reference, I am using the version "4.5.2" of jqGrid.</p>
</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit7122' value='Select Code' data-codeid='sfcode7122' /></p><div class='sfcode' id='sfcode7122'>$(&#39;#tblTargetDetails&#39;).jqGrid({
    url: &#39;PostHandlers/CommonHandler.asmx/GetTargetDetails&#39;,
    datatype: &#39;json&#39;,
    ajaxGridOptions: { contentType: &#39;application/json; charset=utf-8&#39; },
    ajaxRowOptions: { contentType: "application/json; charset=utf-8", dataType: "json" },
    postData: "{&#39;TargetID&#39;: &#39;" + TargetID + "&#39;}",
    mtype: &#39;POST&#39;,
    colNames: [&#39;Team ID&#39;, &#39;Member UserID&#39;, &#39;Measure&#39;, &#39;Product&#39;, &#39;Month1&#39;, &#39;Month2&#39;],
    colModel: [
      { name: &#39;TeamID&#39;, index: &#39;TeamID&#39;, width: 55, search: true, sorttype: &#39;int&#39; },
      { name: &#39;MemberUserID&#39;, index: &#39;MemberUserID&#39;, width: 90, search: true, stype: &#39;text&#39; },
      { name: &#39;Measure&#39;, index: &#39;Measure&#39;, width: 90, search: true, searchoptions: {} },
      { name: &#39;Product&#39;, index: &#39;Product&#39;, width: 90, search: true },
      { name: &#39;Month1&#39;, index: &#39;Month1&#39;, width: 80, editable: true, search: true },
      { name: &#39;Month2&#39;, index: &#39;Month2&#39;, width: 80, editable: true, search: false }],
    jsonReader: {
        root: "d.TargetDetails",
        records: "d.RecordsCount",
        id: "ID",
        cell: "",
        page: function () { return 1; },
        total: function () { return 1; },
    },
    pager: &#39;#pnlTargetDetails&#39;,
    rowNum: 50,
    rowTotal: 2000,
    rowList: [20, 30, 50],
    loadonce: true,
    viewrecords: true,
    gridview: true,
    ignoreCase: true,
    rownumbers: true,
    caption: &#39;Target Details&#39;,
    editurl: &#39;PostHandlers/CommonHandler.asmx/EditTargetDetail&#39;,
    serializeRowData: function (postData) {

        return JSON.stringify({ &#39;content&#39;: JSON.stringify(postData), &#39;UserID&#39;: UserID });
    },
    onSelectRow: function (id) {
        if (id &#38;&#38; id !== lastSel) {
            $(&#39;#tblTargetDetails&#39;).restoreRow(lastSel);
            lastSel = id;
        }
        $(&#39;#tblTargetDetails&#39;).jqGrid(&#39;editRow&#39;, id, true);

    }
});

$(&#39;#tblTargetDetails&#39;).jqGrid(&#39;navGrid&#39;, &#39;#pnlTargetDetails&#39;, { search: true, edit: false, add: false, del: false });

$(&#39;#tblTargetDetails&#39;).jqGrid(&#39;filterToolbar&#39;, { stringResult: true, searchOnEnter: false });</div></pre>
]]></description>
        	        	<pubDate>Sat, 21 Sep 2013 14:35:54 +0300</pubDate>
        </item>
</channel>
</rss>