<?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: Unable to set query string while creating jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/unable-to-set-query-string-while-creating-jqgrid</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/treegrid/unable-to-set-query-string-while-creating-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>manishchourasia2000@yahoo.com on Unable to set query string while creating jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/unable-to-set-query-string-while-creating-jqgrid#p30622</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/unable-to-set-query-string-while-creating-jqgrid#p30622</guid>
        	        	<description><![CDATA[<p>I am using jqGrid to display record. To display record i have use url  parameter to get relevant data using query string parameter(callID),  but I have observed that first time it works fine after that when i  tried to view another record (different callID) it reset the callID  parameter to it the first one.</p>
<p>Can anybody help me out?</p>
<p>This is my javascript function.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9169' value='Select Code' data-codeid='sfcode9169' /></p>
<div class='sfcode' id='sfcode9169'>
<pre class=&#34;default prettyprint prettyprinted&#34;><p><input type='button' class='sfcodeselect' name='sfselectit921' value='Select Code' data-codeid='sfcode921' /></p><div class='sfcode' id='sfcode921'>function GetAttachment(callID) { //here i am getting right value
//$(&#39;#ActivityGrid&#39;).jqGrid(&#39;clearGridData&#39;);</div></pre>
<p>//  $(&#34;#ActivityGrid&#34;).jqGrid(&#39;setGridParam&#39;, { datatype:&#39;json&#39;}).trigger(&#34;reloadGrid&#34;);</p>
<pre class=&#34;default prettyprint prettyprinted&#34;><p><input type='button' class='sfcodeselect' name='sfselectit6518' value='Select Code' data-codeid='sfcode6518' /></p><div class='sfcode' id='sfcode6518'>var ActivityGrid;
//var myDataSuccess;
ActivityGrid = $(&#34;#ActivityGrid&#34;).jqGrid({
    ajaxGridOptions: { contentType: &#39;application/json; charset=utf-8&#39; },


    loadError: function (xhr, st, err) {
        debugger;
        $(&#34;#ActivityGridMap&#34;).html(&#34;Type: &#34; + st + &#34;; Response: &#34; + xhr.status + &#34; &#34; + xhr.statusText);
    },

    datatype: &#39;json&#39;,
    url: &#39;wts.asmx/GetAttachment?callID=&#39; + callID, //passing correct value,but in webservice it gives me first value.
    mtype: &#39;POST&#39;,
    forceFit: true,
    loadComplete: function (data) {
        //  debugger;
        $(this).HideBusy();
    },
    serializeGridData: function (postData) {
        if (postData.searchField === undefined) postData.searchField = null;
        if (postData.searchString === undefined) postData.searchString = null;
        if (postData.searchOper === undefined) postData.searchOper = null;
        if (postData.filters === undefined) postData.filters = null;
        return JSON.stringify(postData);
    },
    jsonReader: { repeatitems: false, root: &#34;d.rows&#34;, page: &#34;d.page&#34;, total: &#34;d.total&#34;, records: &#34;d.records&#34; },
    colNames: [&#39;Activity&#39;, &#39;Date&#39;, &#39;Time&#39;, &#39;Handled By&#39;, &#39;Notes&#39;, &#39;Details&#39;, &#39;Attachment&#39;, &#39;Display&#39;],
    colModel: [
                    { name: &#39;ClgCode&#39;, index: &#39;ClgCode&#39;, align: &#34;left&#34;, width: 80 },
                    { name: &#39;Date&#39;, index: &#39;Date&#39;, align: &#34;left&#34;, width: 70, formatter: &#39;date&#39;, formatoptions: { srcformat: &#39;yyyyMMdd&#39;, newformat: &#39;d-M-y&#39; }, width: 100 },
                    { name: &#39;Time&#39;, index: &#39;Time&#39;, align: &#34;left&#34;, width: 50, formatter: &#39;time&#39;, width: 100 },
                    { name: &#39;HandledBy&#39;, index: &#39;HandledBy&#39;, align: &#34;left&#34;, width: 80 },
                    { name: &#39;Notes&#39;, index: &#39;Notes&#39;, align: &#34;left&#34;, width: 120 },
                    { name: &#39;Details&#39;, index: &#39;Details&#39;, align: &#34;left&#34;, width: 120 },
                    { name: &#39;Attachment&#39;, index: &#39;Attachment&#39;, jsonmap: &#34;Attachment&#34;, align: &#34;left&#34;, width: 0 },
                    {
                        name: &#39;Display&#39;, index: &#39;Display&#39;, align: &#34;center&#34;, width: 100,
                        formatter: function () {
                            return &#34; &#60;input id=\&#34;uxViewAtt\&#34; class=\&#34;MyButton\&#34; type=\&#34;button\&#34; value=\&#34;Display\&#34;  onclick=\&#34;return OpenAttachment(event);\&#34;/&#62;&#34;;
                        }
                    }
                ],
    rowNum: 5,
    rowList: [5],
    pager: &#34;#ActivityGridMap&#34;,
    viewrecords: true,
    gridview: true,
    rownumbers: true,
    height: 60,
    width: 940,
    caption: &#39;Attachments&#39;
}).jqGrid(&#39;navGrid&#39;, &#39;#ActivityGridMap&#39;, { edit: false, add: false, del: false, search: false });</div></pre>
</div>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit6394' value='Select Code' data-codeid='sfcode6394' /></p><div class='sfcode' id='sfcode6394'></div></pre>
]]></description>
        	        	<pubDate>Wed, 14 May 2014 13:11:56 +0300</pubDate>
        </item>
</channel>
</rss>