<?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: browser screen contents hidden by jqGrid dialog</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/browser-screen-contents-hidden-by-jqgrid-dialog</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/browser-screen-contents-hidden-by-jqgrid-dialog/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>KTanzer on browser screen contents hidden by jqGrid dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/browser-screen-contents-hidden-by-jqgrid-dialog#p30227</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/browser-screen-contents-hidden-by-jqgrid-dialog#p30227</guid>
        	        	<description><![CDATA[<p>I couldnt recreate in public site <a href="http://www.trirand.com/blog/wp" rel="nofollow">http://www.trirand.com/blog/wp</a>...../&#038;#39;, &#39;<img class="spSmiley" style="margin:0" src="http://www.trirand.com/blog/wp-content/forum-smileys/sf-frown.gif" title="Frown" alt="Frown" />&#39;, &#39;1&#39;);" src="http://www.trirand.com/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" />, but did figure out the issue only happened in VS2010 running the built-in IIS (Cassini).&#160; On a production server with a release build, the issue went away.</p>
]]></description>
        	        	<pubDate>Mon, 10 Feb 2014 20:18:40 +0200</pubDate>
        </item>
        <item>
        	<title>tony on browser screen contents hidden by jqGrid dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/browser-screen-contents-hidden-by-jqgrid-dialog#p30220</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/browser-screen-contents-hidden-by-jqgrid-dialog#p30220</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Can you please prepare a online example and me the link to it.</p>
<p>We need all the code - css, javascript and etc.</p>
</p>
<p>Thank you.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Feb 2014 15:25:37 +0200</pubDate>
        </item>
        <item>
        	<title>KTanzer on browser screen contents hidden by jqGrid dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/browser-screen-contents-hidden-by-jqgrid-dialog#p30213</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/browser-screen-contents-hidden-by-jqgrid-dialog#p30213</guid>
        	        	<description><![CDATA[<p>The background screen for the web application is being hidden when the jqGrid dialog displays. &#160;</p>
<p>The clicks a link (not a jqGrid) that displays a jqGrid list generated by the code below. &#160;While the grid is loading, I can see the browser contents, the frame of the grid with &#39;Loading...&#39; displayed, but then the screen contents go blank (gray) and the list data displays in the grid frame correctly. &#160;</p>
<p>Is this a bug, feature or some configuration item I missed?</p>
</p>
<p>Code:</p>
<p>function OpenChooseLot(snapShotId, startingDate, forecastYear, blendCd, gradeType, gradeCd, gradeDesc) {</p>
<p>var urlGetModel = &#39;&#60;%:Url.Action("GetColumnNamesAndModel", "Substitution")%&#62;&#39;;</p>
<p>var urlGetLots = &#39;&#60;%:Url.Action("GetLots", "Substitution")%&#62;&#39;;</p>
</p>
<p>$.ajax({</p>
<p>url: urlGetModel,</p>
<p>type: &#39;GET&#39;,</p>
<p>success: function (jsonString) {</p>
<p>var jsonObject = jQuery.parseJSON(jsonString);</p>
<p>var colNames = jsonObject.colNames; // [&#39;Grade Desc&#39;, &#39;Useable Date&#39;, &#39;Nicotine&#39;]</p>
<p>var colModel = jsonObject.colModel; // [{ name: &#39;GRADE_DESC&#39; }, { name: &#39;USEABLE_DATE&#39; }, { name: &#39;Nicotine&#39;}]</p>
<p>var params = "snapShotId=" + encodeURIComponent(snapShotId) +</p>
<p>"&#38;startingDate=" + encodeURIComponent(startingDate) +</p>
<p>"&#38;forecastYear=" + encodeURIComponent(forecastYear) +</p>
<p>"&#38;blendCd=" + encodeURIComponent(blendCd) +</p>
<p>"&#38;gradeType=" + encodeURIComponent(gradeType) +</p>
<p>"&#38;gradeCd=" + encodeURIComponent(gradeCd) +</p>
<p>"&#38;gradeDesc=" + encodeURIComponent(gradeDesc);</p>
<p>var urlEncoded = urlGetLots + "?" + params;</p>
</p>
<p>$("#tableLots").jqGrid(&#39;GridUnload&#39;); // force grid data to be unloaded</p>
<p>$("#tableLots").jqGrid({</p>
<p>url: urlEncoded,</p>
<p>type: &#39;GET&#39;,</p>
<p>datatype: &#39;json&#39;,</p>
<p>colNames: colNames,</p>
<p>colModel: colModel,</p>
<p>jsonReader: { repeatitems: true, id: "0", cell: "", root: "rows", page: "page", total: "total", records: "records" },</p>
<p>pager: &#39;#tableLots_pager&#39;,</p>
<p>height: 300,</p>
<p>rowNum: 20,</p>
<p>rowList: [10, 20, 50],</p>
<p>caption: &#39;Lots for substitution&#39;,</p>
<p>scrollrows: true,</p>
<p>onSelectRow: function (rowid, status) {</p>
<p>//alert("onSelectRow fired for id: " + rowid + " with status: " + status);</p>
<p>var grid = jQuery("#tableLots");</p>
<p>var rowData = grid.getRowData(rowid);</p>
<p>var gradeDescNew = grid.getCell(rowid, 0);</p>
<p>// make the Change button request a substitution for the specified data</p>
<p>$("#tableLots_Change").button({ disabled: false });</p>
<p>var newControllerPath = &#39;&#60;%= Url.Action("UpdateBlendMix", "Substitution")%&#62;&#39;;</p>
<p>var newParams = "snapShotId=" + encodeURIComponent(snapShotId) +</p>
<p>"&#38;startingDate=" + encodeURIComponent(startingDate) +</p>
<p>"&#38;year=" + encodeURIComponent(forecastYear) +</p>
<p>"&#38;blend=" + encodeURIComponent(blendCd) +</p>
<p>"&#38;oldGradeDesc=" + encodeURIComponent(gradeDesc) +</p>
<p>"&#38;newGradeDesc=" + encodeURIComponent(gradeDescNew);</p>
<p>$("#tableLots_Change").attr("onclick", "location.href="" + newControllerPath + "?" + newParams + """);</p>
<p>},  //end-onSelectRow</p>
<p>loadComplete: function (data) {</p>
<p>if (data.rows.length &#62; 0) {</p>
<p>for (var i = 0; i &#60; data.rows.length; i++) {</p>
<p>if (data.rows[i][0] == gradeDesc) {</p>
<p>$(&#39;#tableLots&#39;).jqGrid(&#39;setSelection&#39;, i, false);   // make the row [i] selected, but do not fire the onSelectRow event</p>
<p>$(&#39;#tableLots_Change&#39;).button({ disabled: true }); // or .button("enable") or .button("disable") after initialization</p>
<p>} //end-if</p>
<p>} //end-for</p>
<p>} //end-if data.rows.length</p>
<p>} //end loadComplete</p>
<p>}); //end-jqGrid</p>
<p>}, //end-success</p>
<p>error: function (result) {</p>
<p>alert("Error in OpenChooseLots: " + result);</p>
<p>} //end-error</p>
<p>});    //end-ajax</p>
</p>
<p>$("#divChooseLot").dialog({ modal: true });</p>
<p>$("#divChooseLot").dialog("open");</p>
<p>} //end-function</p></p>
]]></description>
        	        	<pubDate>Fri, 07 Feb 2014 21:53:17 +0200</pubDate>
        </item>
</channel>
</rss>