<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jqGrid 3.4.4 is out</title>
	<atom:link href="http://www.trirand.com/blog/?feed=rss2&#038;p=350" rel="self" type="application/rss+xml" />
	<link>http://www.trirand.com/blog/?p=350</link>
	<description>Grid plugin</description>
	<lastBuildDate>Wed, 08 Sep 2010 23:52:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Oliver Mezquita</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-6970</link>
		<dc:creator>Oliver Mezquita</dc:creator>
		<pubDate>Mon, 16 Nov 2009 19:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-6970</guid>
		<description>First of all, I want to thank the jqGrid team for its EXCELLENT work. This grid is the best there is for jQuery. 
Now, I needed to develop some modifications for some project I&#039;m working on, and I wanted to share them with the community. It&#039;s all related with jqGrid&#039;s multiselect, and the combination of this and subgrids.
If you&#039;re interested, take a look at 
http://www.undisciplinedbytes.com/2009/11/jqgrid-multiselect-a-little-improvement/</description>
		<content:encoded><![CDATA[<p>First of all, I want to thank the jqGrid team for its EXCELLENT work. This grid is the best there is for jQuery.<br />
Now, I needed to develop some modifications for some project I&#8217;m working on, and I wanted to share them with the community. It&#8217;s all related with jqGrid&#8217;s multiselect, and the combination of this and subgrids.<br />
If you&#8217;re interested, take a look at<br />
<a href="http://www.undisciplinedbytes.com/2009/11/jqgrid-multiselect-a-little-improvement/" rel="nofollow">http://www.undisciplinedbytes.com/2009/11/jqgrid-multiselect-a-little-improvement/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3679</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Thu, 23 Jul 2009 08:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3679</guid>
		<description>BUG in jqGrid 3.4.4
100% height in FF 3.5.1 not work</description>
		<content:encoded><![CDATA[<p>BUG in jqGrid 3.4.4<br />
100% height in FF 3.5.1 not work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bee</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3170</link>
		<dc:creator>bee</dc:creator>
		<pubDate>Mon, 06 Jul 2009 21:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3170</guid>
		<description>After searching/filtering a grid I want to export data in a csv file. How do I retrive grid search options and send them to an ajax request?</description>
		<content:encoded><![CDATA[<p>After searching/filtering a grid I want to export data in a csv file. How do I retrive grid search options and send them to an ajax request?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lukasz</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3153</link>
		<dc:creator>lukasz</dc:creator>
		<pubDate>Sun, 05 Jul 2009 22:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3153</guid>
		<description>is jsonReader taking the same selectors as xmlReader ?
I&#039;ve got a json response that contains properly formatted grid data
as one of the elements of the response:

{...
 griddata:{total:&quot;2&quot;,...},
 ...}

so mapping like:

 jsonReader:{
     root:&quot;griddata&gt;rows&quot;,
     page:&quot;griddata&gt;page&quot;,
     ...
 }

should work, correct ? 

lukasz</description>
		<content:encoded><![CDATA[<p>is jsonReader taking the same selectors as xmlReader ?<br />
I&#8217;ve got a json response that contains properly formatted grid data<br />
as one of the elements of the response:</p>
<p>{&#8230;<br />
 griddata:{total:&#8221;2&#8243;,&#8230;},<br />
 &#8230;}</p>
<p>so mapping like:</p>
<p> jsonReader:{<br />
     root:&#8221;griddata&gt;rows&#8221;,<br />
     page:&#8221;griddata&gt;page&#8221;,<br />
     &#8230;<br />
 }</p>
<p>should work, correct ? </p>
<p>lukasz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Ganly</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3102</link>
		<dc:creator>Rob Ganly</dc:creator>
		<pubDate>Tue, 30 Jun 2009 10:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3102</guid>
		<description>ah, also, in the colModel

sortname: &#039;id&#039;

should be

sortname: &#039;invid&#039;

then the example will work!

rob ganly</description>
		<content:encoded><![CDATA[<p>ah, also, in the colModel</p>
<p>sortname: &#8216;id&#8217;</p>
<p>should be</p>
<p>sortname: &#8216;invid&#8217;</p>
<p>then the example will work!</p>
<p>rob ganly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Ganly</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3099</link>
		<dc:creator>Rob Ganly</dc:creator>
		<pubDate>Tue, 30 Jun 2009 08:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3099</guid>
		<description>nice work.

just a small (but important) thing- i just noticed that in the sql to create the tutorial example table the primary key declaration should read:

&lt;code&gt; PRIMARY KEY  (invid) &lt;/code&gt;

as the column &#039;id&#039; doesn&#039;t exist.

rob ganly</description>
		<content:encoded><![CDATA[<p>nice work.</p>
<p>just a small (but important) thing- i just noticed that in the sql to create the tutorial example table the primary key declaration should read:</p>
<p><code> PRIMARY KEY  (invid) </code></p>
<p>as the column &#8216;id&#8217; doesn&#8217;t exist.</p>
<p>rob ganly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waiting</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3029</link>
		<dc:creator>waiting</dc:creator>
		<pubDate>Fri, 26 Jun 2009 11:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3029</guid>
		<description>it&#039;s strange code corrupt in #5. 
post again:

$(&#039;#gridid&#039;).jqGrid(
　　.....
　　.....
.navButtonAdd(&#039;#gridid&#039;, {
　　title : &#039;del&#039;,
　　onClickButton : function() {
　　var gr = $(&#039;#gridid&#039;).getGridParam(&quot;selarrrow&quot;);
　　var len = gr.length;

　　for (var x=0; x&lt;len; x++) 
{
　　　　// alert(gr.toString());
　　　　// alert(gr[x]);
　　　　var rowid = gr[x].substring(5); 
　　　　$(&#039;#gridid&#039;).delRowData( &#039;save_&#039; + rowid);
　　}
},</description>
		<content:encoded><![CDATA[<p>it&#8217;s strange code corrupt in #5.<br />
post again:</p>
<p>$(&#8216;#gridid&#8217;).jqGrid(<br />
　　&#8230;..<br />
　　&#8230;..<br />
.navButtonAdd(&#8216;#gridid&#8217;, {<br />
　　title : &#8216;del&#8217;,<br />
　　onClickButton : function() {<br />
　　var gr = $(&#8216;#gridid&#8217;).getGridParam(&#8220;selarrrow&#8221;);<br />
　　var len = gr.length;</p>
<p>　　for (var x=0; x&lt;len; x++)<br />
{<br />
　　　　// alert(gr.toString());<br />
　　　　// alert(gr[x]);<br />
　　　　var rowid = gr[x].substring(5);<br />
　　　　$(&#039;#gridid&#039;).delRowData( &#039;save_&#039; + rowid);<br />
　　}<br />
},</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waiting</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3028</link>
		<dc:creator>waiting</dc:creator>
		<pubDate>Fri, 26 Jun 2009 11:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3028</guid>
		<description>edit:
above &#039;var gr = $(’#’ + st.gridsave_id).getGridParam(”selarrrow”);&#039; should be 
var gr = $(’#gridid’).getGridParam(”selarrrow”);</description>
		<content:encoded><![CDATA[<p>edit:<br />
above &#8216;var gr = $(’#’ + st.gridsave_id).getGridParam(”selarrrow”);&#8217; should be<br />
var gr = $(’#gridid’).getGridParam(”selarrrow”);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waiting</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3027</link>
		<dc:creator>waiting</dc:creator>
		<pubDate>Fri, 26 Jun 2009 11:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3027</guid>
		<description>Hi,Tony
I found a bug delRowData() will change array getGridParam(&quot;selarrrow&quot;).

see:
$(&#039;#gridid&#039;).jqGrid(
　　.....
　　.....
.navButtonAdd(&#039;#gridid&#039;, {
　　title : &#039;del&#039;,
　　onClickButton : function() {
　　var gr = $(&#039;#&#039; + st.gridsave_id).getGridParam(&quot;selarrrow&quot;);
　　var len = gr.length;
　　for (var x=0; x &#039;2888&#039;
　　　　$(&#039;#gridid&#039;).delRowData( &#039;save_&#039; + rowid);
　　}
},

when delRowData() run once, this rowid will be del from array gr,so next for-look  the value of gr[x] may &#039;undefined&#039;, whill this time x &gt; the real length of gr.
Instead of gr[x],   blow works good:
var saveid = gr.shift(); 
var rowid = saveid.substring(5);</description>
		<content:encoded><![CDATA[<p>Hi,Tony<br />
I found a bug delRowData() will change array getGridParam(&#8220;selarrrow&#8221;).</p>
<p>see:<br />
$(&#8216;#gridid&#8217;).jqGrid(<br />
　　&#8230;..<br />
　　&#8230;..<br />
.navButtonAdd(&#8216;#gridid&#8217;, {<br />
　　title : &#8216;del&#8217;,<br />
　　onClickButton : function() {<br />
　　var gr = $(&#8216;#&#8217; + st.gridsave_id).getGridParam(&#8220;selarrrow&#8221;);<br />
　　var len = gr.length;<br />
　　for (var x=0; x &#8217;2888&#8242;<br />
　　　　$(&#8216;#gridid&#8217;).delRowData( &#8216;save_&#8217; + rowid);<br />
　　}<br />
},</p>
<p>when delRowData() run once, this rowid will be del from array gr,so next for-look  the value of gr[x] may &#8216;undefined&#8217;, whill this time x &gt; the real length of gr.<br />
Instead of gr[x],   blow works good:<br />
var saveid = gr.shift();<br />
var rowid = saveid.substring(5);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathya</title>
		<link>http://www.trirand.com/blog/?p=350&#038;cpage=1#comment-3023</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Thu, 25 Jun 2009 18:38:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.trirand.com/blog/?p=350#comment-3023</guid>
		<description>Issue with setPostDataItem:

To start with, jqGrid plugin has been really helpful in my project. It has loads of features and makes development a quick and enjoyable task. Keep up the good work.

Coming to the issue, in my project, I have added a dropdown list control to the jqgrid toolbar. The dropdown list maps to a column in the database table that is enumerable. The value selected from the dropdown list must be added to the search criteria.

In order to implement this, I used the appendPostData function to add the criteria to the query string. Also, I used to setPostData function to reset the page number to 1 whenever the value of the dropdown list changed.

This is where I ran into the issue. The setPostData in grid.postext.js function sets the value of p.postdata[&quot;page&quot;] to 1 where as the populate function in grid.base.js uses the p.page value to construct the query string.

In order to fix this issue I added a line of code in setPostDataItem to set the value of p.page to 1. This is not a perfect fix but I could get my code working after this.

setPostDataItem: function(key, val) {
  var $t = this[0];
  if (!$t.grid) { return; }
  $t.p.postData[key] = val;
  //This is done here because, originally, the function posted the
  //new value to p.postData[&quot;page&quot;] but populate function in
  //grid.base.js took value from p.page. 
  //So I have here put the value in p.page as well.
  if (key == &quot;page&quot;) {
    $t.p.page = val;
  }
},

It would be great to see this bug fixed in the next release of jqGrid.

Thanks</description>
		<content:encoded><![CDATA[<p>Issue with setPostDataItem:</p>
<p>To start with, jqGrid plugin has been really helpful in my project. It has loads of features and makes development a quick and enjoyable task. Keep up the good work.</p>
<p>Coming to the issue, in my project, I have added a dropdown list control to the jqgrid toolbar. The dropdown list maps to a column in the database table that is enumerable. The value selected from the dropdown list must be added to the search criteria.</p>
<p>In order to implement this, I used the appendPostData function to add the criteria to the query string. Also, I used to setPostData function to reset the page number to 1 whenever the value of the dropdown list changed.</p>
<p>This is where I ran into the issue. The setPostData in grid.postext.js function sets the value of p.postdata["page"] to 1 where as the populate function in grid.base.js uses the p.page value to construct the query string.</p>
<p>In order to fix this issue I added a line of code in setPostDataItem to set the value of p.page to 1. This is not a perfect fix but I could get my code working after this.</p>
<p>setPostDataItem: function(key, val) {<br />
  var $t = this[0];<br />
  if (!$t.grid) { return; }<br />
  $t.p.postData[key] = val;<br />
  //This is done here because, originally, the function posted the<br />
  //new value to p.postData["page"] but populate function in<br />
  //grid.base.js took value from p.page.<br />
  //So I have here put the value in p.page as well.<br />
  if (key == &#8220;page&#8221;) {<br />
    $t.p.page = val;<br />
  }<br />
},</p>
<p>It would be great to see this bug fixed in the next release of jqGrid.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
