2730
<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - All Forums</title>
	<link>http://www.trirand.com/blog/?page_id=393/</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Forum Version 4.1.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393&#038;xfeed=all" rel="self" type="application/rss+xml" />
<item>
	<title>Anandha on Disable row selection</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/disable-row-selection/#p29037</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/disable-row-selection/#p29037</guid>
	<description><![CDATA[&#160;onCellSelect : function(rowid,iCol,cellcontent,e) {<br />&#160;&#160;&#160;&#160;&#160;&#160; $("#"+gridId + " tr#"+rowid).css("background", "none");<br />&#160;&#160;&#160;&#160;&#160;&#160; $("#"+gridId + " tr.jqgrow:odd").css("background", "#DDDDDC");<br />&#160;}
]]></description>
	<pubDate>Thu, 20 Jun 2013 01:29:15 +0000</pubDate>
</item>
<item>
	<title>marciaKeglevich on How get the click event of buttons pagination?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-get-the-click-event-of-buttons-pagination/#p29036</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-get-the-click-event-of-buttons-pagination/#p29036</guid>
	<description><![CDATA[<p>Well, after a long research, I found&#160;the solution for my case using this code :</p>
<br />
<p>$(&#39;#idGrid&#39;).setGridParam({</p>
<p><span style="white-space: pre;"> </span>onPaging: function() {</p>
<p><span style="white-space: pre;"> </span>//make something here</p>
<p><span style="white-space: pre;">&#160;</span><span style="white-space: pre;"> </span>}</p>
<p>});</p>
<br />
<p>Few lines that caused me a headache <img src='http://www.trirand.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<br />
<p>Anyway, I hope this helps someone <img src='http://www.trirand.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />
]]></description>
	<pubDate>Wed, 19 Jun 2013 19:31:32 +0000</pubDate>
</item>
<item>
	<title>sean_k on IE8, JQuery 1.9+, JqGrid 4.5.2 - Jquery UI dialog modal has wrong stack order</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/ie8-jquery-1-9-jqgrid-4-5-2-jquery-ui-dialog-modal-has-wrong-stack-order/#p29035</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/ie8-jquery-1-9-jqgrid-4-5-2-jquery-ui-dialog-modal-has-wrong-stack-order/#p29035</guid>
	<description><![CDATA[<p>Hi all,</p>
<br />
<p>As the title states. &#160;Simple to repro &#8211; use the html below (cannot use JsFiddle/Plunker as they do not support IE8).</p>
<br />
<p>Open the html below in IE8. &#160;Click the &#39;Click Me&#39; button. &#160;You will get a dialog but the jquery ui widget overlay gets rendered over the dialog. &#160;The culprit is here: <a href="https://github.com/tonytomov/jqGrid/blob/master/js/jquery.jqGrid.js#L11945" target="_blank" target="_blank">https://github.com/tonytomov/jqGrid/blob/master/js/jquery.jqGrid.js#L11945</a>. &#160;Commenting this out reverts back to the jquery version: &#160;</p>
<blockquote>
<p>function (n){</p>
<p>&#160; &#160; var t=n.offsetWidth,r=n.offsetHeight;</p>
<p>&#160; &#160; return t===0&#38;&#38;r===0&#124;&#124;!i.support.reliableHiddenOffsets&#38;&#38;(n.style&#38;&#38;n.style.display&#124;&#124;i.css(n,"display"))==="none"</p>
<p>}</p>
</blockquote>
<p>I&#39;m not sure of the reason for the jqGrid override of this or if removing will break another feature. &#160;If I can provide more information, please let me know.</p>
<br />
<p>Thanks,</p>
<p>Sean</p>
<br />
<p>&#60;html&#62;</p>
<p>&#60;head&#62;</p>
<p>&#160; &#160; &#60;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/ui-lightness/jquery-ui.css" rel=stylesheet&#62;</p>
<p>&#160; &#160; &#60;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"&#62;&#60;/script&#62;</p>
<p>&#160; &#160; &#60;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.js"&#62;&#60;/script&#62;</p>
<p>&#160; &#160; &#60;script src="http://trirand.com/blog/jqgrid/js/i18n/grid.locale-en.js"&#62;&#60;/script&#62;</p>
<p>&#160; &#160; &#60;script src="http://trirand.com/blog/jqgrid/js/jquery.jqGrid.js"&#62;&#60;/script&#62;</p>
<p>&#160; &#160; &#60;script type="text/javascript"&#62;</p>
<p>&#160; &#160; &#160; &#160; $(function(){</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160;$(&#39;input&#39;).click(function(){</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160;$(&#39;&#60;div&#62;Can&#39;t click me&#60;/div&#62;&#39;).dialog({</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; modal: true</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160;});</p>
<p>&#160; &#160; &#160; });</p>
<p>&#160; &#160;});</p>
<p>&#160; &#60;/script&#62;</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#160; &#160; &#60;input type="button" value="Click Me"&#62;&#60;/input&#62;</p>
<p>&#60;/body&#62;</p>
]]></description>
	<pubDate>Wed, 19 Jun 2013 13:17:41 +0000</pubDate>
</item>
<item>
	<title>Mantezuma on Excel export bug when actions column is added</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/excel-export-bug-when-actions-column-is-added/#p29034</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/excel-export-bug-when-actions-column-is-added/#p29034</guid>
	<description><![CDATA[This problem was solved&#160;<a rel="nofollow" href="http://www.trirand.net/forum/default.aspx?g=posts&#38;t=4104" target="_blank" target="_blank">here</a>
]]></description>
	<pubDate>Wed, 19 Jun 2013 12:13:31 +0000</pubDate>
</item>
<item>
	<title>anand_matta on Copy to clipboard?</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/copy-to-clipboard/#p29033</link>
	<category>Discussion</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/copy-to-clipboard/#p29033</guid>
	<description><![CDATA[<br />
<p>Hay JQ Grid exports. Thank you for this excellent component. This makes most of the life easy.</p>
<p>I have started working on one application where I used JQGrid.</p>
<p>Actually I am migtating a desktop application to wen based.</p>
<br />
<p>I need to copy option only for one colunm to clipboard. Rest of the colunms should not be selected or copied.</p>
<p>is there any way to copy colunm data toclipboard?</p>
<br />
<p>Thank you in advance</p>
<p>Anand</p>
]]></description>
	<pubDate>Wed, 19 Jun 2013 11:15:52 +0000</pubDate>
</item>
<item>
	<title>anand_matta on bold the row content not happening</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/bold-the-row-content-not-happening/#p29032</link>
	<category>Discussion</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/bold-the-row-content-not-happening/#p29032</guid>
	<description><![CDATA[<p>Hay JQ Grid exports. Thank you for this excellent component. This makes most of the life easy.</p>
<p>I have started working on one application where I used JQGrid.</p>
<p>Actually I am migtating a desktop application to wen based.</p>
<p>I am sending in a hidden colunm with the style class name and the same name coded in the jsp also.</p>
<p>&#60;style type="text/css"&#62;<br />.newrow { font-weight: bolder; }<br />.oldrow { font-weight: normal; color: black;&#160; }<br />.remindernewrow { font-weight: bolder; color: maroon; }<br />.reminderoldrow { font-weight: normal; color: maroon; }<br />&#60;/style&#62;</p>
<br />
<p>in a row model</p>
<p>jQuery("#atrisk").jqGrid(</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .....</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel : [ {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .....</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;name : &#39;ROWSTYLE&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;index : &#39;ROWSTYLE&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;hidden:true<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ..............</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowattr: function (rd) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return {"class": rd.ROWSTYLE};<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},</p>
<br />
<p>&#160;But the problem is color to font is chnaging but bold is not applying is there any issue with the code or any workaround?</p>
<p>Thank you in advance</p>
<p>Anand</p>

25dd
]]></description>
	<pubDate>Wed, 19 Jun 2013 11:10:02 +0000</pubDate>
</item>
<item>
	<title>anand_matta on Reminders and notes</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/reminders-and-notes/#p29031</link>
	<category>Discussion</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/reminders-and-notes/#p29031</guid>
	<description><![CDATA[<p>Hay JQ Grid exports. Thank you for this excellent component. This makes most of the life easy.</p>
<p>I have started working on one application where I used JQGrid.</p>
<p>Actually I am migtating a desktop application to wen based.</p>
<p>I wanted to set reminders and based on time it give the reminder alert, user can open it and view the note. With this snoozing, dismiss and cancel reminders. Is there any component with JQgrid. Please let me know.</p>
<br />
<p>Thank you in advance</p>
<p>Anand</p>
]]></description>
	<pubDate>Wed, 19 Jun 2013 11:00:53 +0000</pubDate>
</item>
<item>
	<title>zeestorm on Single Column Table - setGridWidth</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/single-column-table-setgridwidth/#p29030</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/single-column-table-setgridwidth/#p29030</guid>
	<description><![CDATA[<p>When you have a single column table, and you attempt to call "setGridWidth", the table will not update.</p>
<br />
<p>This is due to line 3465 (on my copy), which reads:</p>
<blockquote>
<p>if (!lvc) { return; }</p>
</blockquote>
<p>Since a single column will have index of 0, this ends the function, instead of finishing updating the grid. It should be something like this:</p>
<blockquote>
<p>if (lvc === undefined) { return; }</p>
</blockquote>
<br />
<p>Which would mean there are no visible columns to be resized.</p>
<p>The above code is what I changed locally and it appears to be working as intended.</p>
]]></description>
	<pubDate>Wed, 19 Jun 2013 05:32:03 +0000</pubDate>
</item>
<item>
	<title>crohit on Help! jqgrid onclick or click only works once</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-jqgrid-onclick-or-click-only-works-once/#p29029</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-jqgrid-onclick-or-click-only-works-once/#p29029</guid>
	<description><![CDATA[<blockquote>tony said:
<p>Hello,</p>
<br />
<p>Check to see if you have a uniquie id&#39;s in the grid.</p>
<br />
<p>Regards</p>
</blockquote>
<hr />
<p>Yes, I do have unique ids in the grid for my data. If you see my code, you will notice that I have 3 different ways I am trying to circumvent the issue. But, if i DO NOT call jqgrid, then the onclick works every time. Thats where i show an JS Alert in my code.</p>
]]></description>
	<pubDate>Tue, 18 Jun 2013 23:43:31 +0000</pubDate>
</item>
<item>
	<title>iski.wang on How to asynchrously update jqgrid pgtext</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-asynchrously-update-jqgrid-pgtext/#p29028</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-asynchrously-update-jqgrid-pgtext/#p29028</guid>
	<description><![CDATA[<p>I am using jqgrid to display a very large data set. Since the query  to get the total number of record count takes a long time. I am trying  to see if I can fire a separate ajax call to get the total count and then update  the recordcount and total page number after the grid is rendered with  the first result data set.</p>
<p>I am able to update the total record count by using</p>
<pre class="default prettyprint prettyprinted"><div class="sfcode">$("#list").jqGrid(&#39;setGridParam&#39;, { recordtext: "View {0} - {1}" + " of " + datacount}).trigger("reloadGrid");</div></pre>
<p>However I am not able to update the totalpage with the code below:</p>
<pre class="default prettyprint prettyprinted"><div class="sfcode">$("#list").jqGrid(&#39;setGridParam&#39;, { pgtext: "page {0} of {1}" + " of " + totalPage}).trigger("reloadGrid");</div></pre>
<p>Anything wrong in the code above? Thank you so much for the help! I really appreciate it!</p>
]]></description>
	<pubDate>Tue, 18 Jun 2013 20:59:04 +0000</pubDate>
</item>
<item>
	<title>tony on Help! jqgrid onclick or click only works once</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-jqgrid-onclick-or-click-only-works-once/#p29027</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-jqgrid-onclick-or-click-only-works-once/#p29027</guid>
	<description><![CDATA[<p>Hello,</p>
<br />
<p>Check to see if you have a uniquie id&#39;s in the grid.</p>
<br />
<p>Regards</p>
]]></description>
	<pubDate>Tue, 18 Jun 2013 19:29:25 +0000</pubDate>
</item>
<item>
	<title>tony on Excel export bug when actions column is added</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/excel-export-bug-when-actions-column-is-added/#p29026</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/excel-export-bug-when-actions-column-is-added/#p29026</guid>
	<description><![CDATA[<p>Hello,</p>
<br />
<p>Can you please post your problem <a href="http://www.trirand.net/forum/default.aspx?g=forum" target="_blank">here</a></p>
<p>It seemes you use our commercial suite.</p>
<br />
<p>Regards</p>
]]></description>
	<pubDate>Tue, 18 Jun 2013 18:59:46 +0000</pubDate>
</item>
<item>
	<title>Mantezuma on Excel export bug when actions column is added</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/excel-export-bug-when-actions-column-is-added/#p29025</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/excel-export-bug-when-actions-column-is-added/#p29025</guid>
	<description><![CDATA[<p>When the actions column was added excel export is not working properly - exports all fields (even hidden) with the names of the database, not from the model column.&#160;<br />What i need to do ?<br />Sorry for my English.&#160;</p>
]]></description>
	<pubDate>Tue, 18 Jun 2013 12:32:55 +0000</pubDate>
</item>
<item>
	<title>venugopalsmartboy on Event triggered by column reorder?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/event-triggered-by-column-reorder/#p29024</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/event-triggered-by-column-reorder/#p29024</guid>
	<description><![CDATA[<p>According to <a href="/blog/?page_id=393/help/sortable-columns/#p12833" target="_blank" target="_blank">this post </a>in trirand forum,</p>
<br />
<p>&#160;sortable : { options : { &#60;whatever sortable options you want&#62; },</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160;update : function(perumtation) {},</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160;},</p>
<br />
<p>This is working great.. thanks to the jqGrid development teams and support communities..</p>
]]></description>
	<pubDate>Tue, 18 Jun 2013 09:49:46 +0000</pubDate>
</item>
<item>
	<title>venugopalsmartboy on Event triggered by column reorder?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/event-triggered-by-column-reorder/#p29023</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/event-triggered-by-column-reorder/#p29023</guid>
	<description><![CDATA[<p>Hi Tony,</p>
<p>If I use like this,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortable:{<br /><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; options: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; stop: function(event, ui) {<br /><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var d = $("div.ui-jqgrid-sortable",$(ui.item));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; console.log(&#39;Colomn "&#39;+ d.text() + &#39;" was reorded&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; update: function(relativeColumnOrder) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; console.log("in update");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br /><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br /><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br /><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<br />
<p>The sortability is not working. Though the headers are moving, but the data in the grid is not moving.</p>
<p>You can find the same&#160; in this&#160; <a title="ColumnReorder" href="http://jsbin.com/ehaxoq/1/" target="_blank" target="_blank">jsbin </a>example. Please suggest on how to go ahead on this.</p>

24ce
]]></description>
	<pubDate>Tue, 18 Jun 2013 09:40:59 +0000</pubDate>
</item>
<item>
	<title>crohit on Help! jqgrid onclick or click only works once</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-jqgrid-onclick-or-click-only-works-once/#p29022</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-jqgrid-onclick-or-click-only-works-once/#p29022</guid>
	<description><![CDATA[<p>I am using Master Detail grid. I have a Form, where the user inputs one or more search criteria and clicks a Button. The button calls the JS function, which in turn calls jqgrid master detail logic and shows the grids with the data returned from the server.</p>
<p>The problem is that the Button onclick only works One time. After that I have to do a page reload to make the onclick work again.</p>
<p>I tried calling another simple JS function (non jqgrid) and in that case Onclick works any number of times.</p>
<p>There is something in jqgrid code, that takes away my ability of onclick.</p>
<p>Please let me know if there is a setting or workaround for this.</p>
<p>thanks</p>
<p>Here is the code:</p>
<br /> <br />
<div class="sfcode">
<p>&#60;head&#62;</p>
<p>&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;</p>
<p>&#60;meta http-equiv=&#34;X-UA-Compatible&#34; content=&#34;IE=edge&#34; /&#62;</p>
<br />
<p>&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;css/redmond/jquery-ui-1.10.3.custom.css&#34; /&#62;</p>
<p>&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;css/ui.jqgrid.css&#34; /&#62;</p>
<br />
<p>&#60;script src=&#34;js/jquery-1.9.0.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#60;script src=&#34;js/i18n/grid.locale-en.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#60;script src=&#34;js/jquery.jqGrid.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<br />
<p>&#60;script type=&#34;text/javascript&#34;&#62;</p>
<p>$.jgrid.no_legacy_api = true;</p>
<p>$.jgrid.useJSON = true;</p>
<br />
<p>$(&#39;mylink&#39;).click(get_servers());</p>
<br />
<p>function get_alert(){</p>
<p>alert(&#34;this sucks!!!&#34;);</p>
<p>}</p>
<br />
<p>function get_servers() {</p>
<p>jQuery(&#34;#list10&#34;).jqGrid({</p>
<p>url:&#34;json/getServers.htm?hostName=&#34;+$(&#39;#hostName&#39;).val()+&#34;&#38;osType=&#34;+$(&#39;#osType&#39;).val()+&#34;&#38;processor=&#34;+$(&#39;#processor&#39;).val(),</p>
<p>datatype: &#34;json&#34;,</p>
<p>colNames:[&#39;_id&#39;,&#39;dMesg&#39;,&#39;nisName&#39;,&#39;id&#39;,&#39;hostName&#39;,&#39;hypervisor_name&#39;,&#39;parserVersion&#39;,&#39;osType&#39;,&#39;cpuInfo&#39;,&#39;memory_GB&#39;,&#39;blkId&#39;,&#39;extended_attributes&#39;,&#39;serverName&#39;,&#39;processor_reference&#39;,&#39;dnsName&#39;,&#39;processor_frequency_GHz&#39;,&#39;memInfo&#39;,&#39;df&#39;,&#39;packages&#39;,&#39;lsPci&#39;,&#39;osVersion&#39;,&#39;partitions&#39;,&#39;name&#39;,&#39;ypName&#39;,&#39;lines&#39;,&#39;ifConfig&#39;,&#39;mounts&#39;,&#39;processor_system_count&#39;,&#39;dmiInfo&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;_id&#39;,index:&#39;_id&#39;, key:true, width:50},</p>
<p>{name:&#39;dMesg&#39;,index:&#39;dMesg&#39;, width:50},</p>
<p>{name:&#39;nisName&#39;,index:&#39;nisName&#39;, width:50},</p>
<p>{name:&#39;id&#39;,index:&#39;id&#39;, width:50},</p>
<p>{name:&#39;hostName&#39;,index:&#39;hostName&#39;, width:50},</p>
<p>{name:&#39;hypervisor_name&#39;,index:&#39;hypervisor_name&#39;, width:50},</p>
<p>{name:&#39;parserVersion&#39;,index:&#39;parserVersion&#39;, width:50},</p>
<p>{name:&#39;osType&#39;,index:&#39;osType&#39;, width:50},</p>
<p>{name:&#39;cpuInfo&#39;,index:&#39;cpuInfo&#39;, width:50},</p>
<p>{name:&#39;memory_GB&#39;,index:&#39;memory_GB&#39;, width:50},</p>
<p>{name:&#39;blkId&#39;,index:&#39;blkId&#39;, width:50},</p>
<p>{name:&#39;extended_attributes&#39;,index:&#39;extended_attributes&#39;, width:50},</p>
<p>{name:&#39;serverName&#39;,index:&#39;serverName&#39;, width:50},</p>
<p>{name:&#39;processor_reference&#39;,index:&#39;processor_reference&#39;, width:50},</p>
<p>{name:&#39;dnsName&#39;,index:&#39;dnsName&#39;, width:50},</p>
<p>{name:&#39;processor_frequency_GHz&#39;,index:&#39;processor_frequency_GHz&#39;, width:50},</p>
<p>{name:&#39;memInfo&#39;,index:&#39;memInfo&#39;, width:50},</p>
<p>{name:&#39;df&#39;,index:&#39;df&#39;, width:50},</p>
<p>{name:&#39;packages&#39;,index:&#39;packages&#39;, width:50},</p>
<p>{name:&#39;lsPci&#39;,index:&#39;lsPci&#39;, width:50},</p>
<p>{name:&#39;osVersion&#39;,index:&#39;osVersion&#39;, width:50},</p>
<p>{name:&#39;partitions&#39;,index:&#39;partitions&#39;, width:50},</p>
<p>{name:&#39;name&#39;,index:&#39;name&#39;, width:50},</p>
<p>{name:&#39;ypName&#39;,index:&#39;ypName&#39;, width:50},</p>
<p>{name:&#39;lines&#39;,index:&#39;lines&#39;, width:50},</p>
<p>{name:&#39;ifConfig&#39;,index:&#39;ifConfig&#39;, width:50},</p>
<p>{name:&#39;mounts&#39;,index:&#39;mounts&#39;, width:50},</p>
<p>{name:&#39;processor_system_count&#39;,index:&#39;processor_system_count&#39;, width:50},</p>
<p>{name:&#39;dmiInfo&#39;,index:&#39;dmiInfo&#39;, width:50}</p>
<p>],</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>pager: &#39;#pager10&#39;,</p>
<p>sortname: &#39;id&#39;,</p>
<p>viewrecords: true,</p>
<p>sortorder: &#34;desc&#34;,</p>
<p>multiselect: false,</p>
<p>caption: &#34;Server list&#34;,</p>
<p>onSelectRow: function(ids) {</p>
<p>if(ids == null) {</p>
<p>ids=0;</p>
<p>if(jQuery(&#34;#list10_d&#34;).jqGrid(&#39;getGridParam&#39;,&#39;records&#39;) &#62;0 )</p>
<p>{</p>
<p>jQuery(&#34;#list10_d&#34;).jqGrid(&#39;setGridParam&#39;,{url:&#34;json/getCpuInfo.htm?_id=&#34;+ids,page:1});</p>
<p>jQuery(&#34;#list10_d&#34;).jqGrid(&#39;setCaption&#39;,&#34;CPU Info: &#34;+ids)</p>
<p>.trigger(&#39;reloadGrid&#39;);</p>
<p>}</p>
<p>} else {</p>
<p>jQuery(&#34;#list10_d&#34;).jqGrid(&#39;setGridParam&#39;,{url:&#34;json/getCpuInfo.htm?_id=&#34;+ids,page:1});</p>
<p>jQuery(&#34;#list10_d&#34;).jqGrid(&#39;setCaption&#39;,&#34;CPU Info: &#34;+ids)</p>
<p>.trigger(&#39;reloadGrid&#39;);</p>
<p>}</p>
<p>}</p>
<p>});</p>
<p>jQuery(&#34;#list10&#34;).jqGrid(&#39;navGrid&#39;,&#39;#pager10&#39;,{add:false,edit:false,del:false});</p>
<p>jQuery(&#34;#list10_d&#34;).jqGrid({</p>
<p>height: 100,</p>
<p>//url:&#39;get_json_subgrid?_id=0&#39;,</p>
<p>datatype: &#34;json&#34;,</p>
<p>colNames:[&#39;cpu family&#39;,&#39;model name&#39;,&#39;cache_alignment&#39;,&#39;vendor_id&#39;,&#39;flags&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;cpu family&#39;,index:&#39;cpu family&#39;, width:100},</p>
<p>{name:&#39;model name&#39;,index:&#39;model name&#39;, width:100},</p>
<p>{name:&#39;cache_alignment&#39;,index:&#39;cache_alignment&#39;, width:100},</p>
<p>{name:&#39;vendor_id&#39;,index:&#39;vendor_id&#39;, width:100},</p>
<p>{name:&#39;flags&#39;,index:&#39;flags&#39;, width:100}</p>
<p>],</p>
<p>rowNum:5,</p>
<p>rowList:[5,10,20],</p>
<p>pager: &#39;#pager10_d&#39;,</p>
<p>sortname: &#39;item&#39;,</p>
<p>viewrecords: true,</p>
<p>sortorder: &#34;asc&#34;,</p>
<p>multiselect: false,</p>
<p>caption:&#34;CPU Info&#34;</p>
<p>}).navGrid(&#39;#pager10_d&#39;,{add:false,edit:false,del:false});</p>
<p>jQuery(&#34;#ms1&#34;).click( function() {</p>
<p>var s;</p>
<p>s = jQuery(&#34;#list10_d&#34;).jqGrid(&#39;getGridParam&#39;,&#39;selarrrow&#39;);</p>
<p>alert(s);</p>
<p>});</p>
<br />
<p>}</p>
<p>&#60;/script&#62;</p>
<br />
<br />
<br />
<br />
<p>&#60;title&#62;Server search&#60;/title&#62;</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;h1&#62;PM ADDM&#60;/h1&#62;</p>
<p>&#60;form method=&#34;get&#34; action=&#34;/&#34;&#62;</p>
<p>&#60;ul&#62;</p>
<p>&#60;li&#62;</p>
<p>&#60;input type=&#34;text&#34; name=&#34;hostName&#34; id=&#34;hostName&#34; placeholder=&#34;host name&#34; &#62;</p>
<p>&#60;/li&#62;</p>
<p>&#60;li&#62;</p>
<p>&#60;input type=&#34;text&#34; name=&#34;osType&#34; id=&#34;osType&#34; placeholder=&#34;operating system&#34; &#62;</p>
<p>&#60;/li&#62;</p>
<p>&#60;li&#62;</p>
<p>&#60;input type=&#34;text&#34; name=&#34;processor&#34; id=&#34;processor&#34; placeholder=&#34;processor family&#34; &#62;</p>
<p>&#60;/li&#62;</p>
<p>&#60;li&#62;</p>
<p>&#60;input type=&#34;button&#34; value=&#34;Search servers&#34; onclick=&#34;javascript:get_servers();&#34;&#62;</p>
<p>&#60;/li&#62;</p>
<p>&#60;/form&#62;</p>
<p>&#60;ul&#62;</p>
<p>&#60;li&#62;</p>
<p>&#60;a href=&#34;#&#34; id=&#34;mylink&#34; onclick=&#34;javascript:get_servers();&#34;&#62;Search servers&#60;/a&#62;</p>
<p>&#60;/li&#62;</p>
<p>&#60;li&#62;</p>
<p>&#60;div style=&#34;cursor: pointer;&#34; onclick=&#34;get_alert()&#34;&#62; Click here&#60;/div&#62;</p>
<p>&#60;/li&#62;</p>
<p>&#60;/ul&#62;</p>
<br />
<p>&#60;!--  --&#62;</p>
<p>Server List</p>
<p>&#60;table id=&#34;list10&#34;&#62;&#60;/table&#62;</p>
<p>&#60;div id=&#34;pager10&#34;&#62;&#60;/div&#62;</p>
<p>&#60;br /&#62;</p>
<p>CPU Info</p>
<p>&#60;table id=&#34;list10_d&#34;&#62;&#60;/table&#62;</p>
<p>&#60;div id=&#34;pager10_d&#34;&#62;&#60;/div&#62;</p>
<br />
<p>&#60;!--  --&#62;</p>
<br />
<p>&#60;/body&#62;</p>
</div>
<br /> <br />

16a1
]]></description>
	<pubDate>Tue, 18 Jun 2013 00:30:43 +0000</pubDate>
</item>
<item>
	<title>zhe2605 on CSS Validation of ui.jqgrid.css</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/css-validation-of-ui-jqgrid-css/#p29021</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/css-validation-of-ui-jqgrid-css/#p29021</guid>
	<description><![CDATA[Hi!<br />Is it possible to fix W3C CSS Validation errors of this document?<br /><img src="http://savepic.org/3672276.jpg" alt="" width="500" height="150" />
]]></description>
	<pubDate>Mon, 17 Jun 2013 23:39:29 +0000</pubDate>
</item>
<item>
	<title>jm44122 on setGridParam no longer loads data as of jQuery 1.8.3</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-no-longer-loads-data-as-of-jquery-1-8-3/#p29020</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-no-longer-loads-data-as-of-jquery-1-8-3/#p29020</guid>
	<description><![CDATA[<p>We have not been frequently updating our jQuery or jqGrid versions. When trying to upgrade to the latest releases, I&#39;ve discovered that setGridParam no longer works in my code. Since no one else seems to be having this issue, I am blaming my code, but cannot identify the problem.</p>
<br />
<p>When we were using jQuery 1.7.1 and jqGrid 4.4.1; all worked okay. I&#39;ve tried a few versions of jQuery, and the issue seems to have started with the release of 1.8.3. Using that version and jqGrid 4.4.4; the data no longer shows in the grid.&#160;</p>
<br />
<p>Here is a short bit of the program. trows is the JSON length returned from the $.ajax call. tdata is the JSON data. Stepping through a debugger, these values do exist when calling the jqGrid functions. Can someone point out what I may have missed in the release notes? Thanks.</p>
<br />
<p>$myTable</p>
<p>.jqGrid(&#39;clearGridData&#39;)</p>
<p>.jqGrid(&#39;setGridParam&#39;,</p>
<p>{</p>
<p>datatype: "local",</p>
<p>data: tdata,</p>
<p>rowNum: trows &#62; 50 ? 50 : trows &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>}</p>
<p>.trigger("reloadGrid");</p>
<br />
<br />
<br />
<br />
]]></description>
	<pubDate>Mon, 17 Jun 2013 22:49:24 +0000</pubDate>
</item>
<item>
	<title>marciaKeglevich on How get the click event of buttons pagination?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-get-the-click-event-of-buttons-pagination/#p29019</link>
	<category>Help</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-get-the-click-event-of-buttons-pagination/#p29019</guid>
	<description><![CDATA[<p>Hi guys,</p>
<p>I&#39;m new at the forum and I need some help to get the click event of pagination buttons,&#160;</p>
<p>I don&#39;t know if it&#39;s possible to make this, I tried get the event by this way, using the css class&#160;</p>
<p>and using the functions .live(); and .click();</p>
<p>But none of these functions get the click event.</p>
<br />
<p>$(&#39;.ui-icon ui-icon-seek-next&#39;).live(&#39;click&#39;, function () { });</p>
<p>$(&#39;.ui-icon ui-icon-seek-next&#39;).click(function() { });</p>
<br />
<p>In this example, I tried to get the event of the button &#39;next&#39; in the pagination, but I think other plugin event calls the button first.</p>
<p>Sorry for my bad english guys and thanks anyway.&#160;</p>
<br />
<br />
]]></description>
	<pubDate>Mon, 17 Jun 2013 22:10:23 +0000</pubDate>
</item>
<item>
	<title>Inara on Select control options automatically re-sorted when values are numeric.</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/select-control-options-automatically-re-sorted-when-values-are-numeric/#p29018</link>
	<category>Bugs</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/select-control-options-automatically-re-sorted-when-values-are-numeric/#p29018</guid>
	<description><![CDATA[<p>I recently stumbled upon the following issue: For an editable grid (I tested both form edit and inline edit modes), if you pass a select control a value list with only numeric storage values, jqGrid automatically re-sorts the list by the storage values when it converts the values to a dropdown.</p>
<br />
<p>For example, if I include the following value list in the editoptions for a select column:</p>
<p>value:{"":"","8":"ACME Inc.","3":"Basic, LLC","7":"Large Corp","2":"Simple Organization","4":"Testing Organization"}</p>
<br /> I expect to get the following select list: <br />&#60;option role="option" value=""&#62;&#60;/option&#62;<br />&#60;option role="option" value="8"&#62;ACME Inc.&#60;/option&#62;<br />&#60;option role="option" value="3"&#62;Basic, LLC&#60;/option&#62;<br />&#60;option role="option" value="7"&#62;Large Corp&#60;/option&#62;<br />&#60;option role="option" value="2"&#62;Simple Organization&#60;/option&#62;<br />&#60;option role="option" value="4"&#62;Testing Organization&#60;/option&#62;<br /><br />Instead, I get this:<br />&#60;option role="option" value="2"&#62;Simple Organization&#60;/option&#62;<br />&#60;option role="option" value="3"&#62;Basic, LLC&#60;/option&#62;<br />&#60;option role="option" value="4"&#62;Testing Organization&#60;/option&#62;<br />&#60;option role="option" value="7"&#62;Large Corp&#60;/option&#62;<br />&#60;option role="option" value="8"&#62;ACME Inc.&#60;/option&#62;<br />&#60;option role="option" value=""&#62;&#60;/option&#62;<br /><br />Is there any way to turn off this auto-sorting behavior? I would like to be able to display values from the database in alphabetical order while storing their IDs.
]]></description>
	<pubDate>Mon, 17 Jun 2013 21:34:05 +0000</pubDate>
</item>
</channel>
</rss>
0

