<?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 within JqueryUI dialog -- Find Records goes behind dialog</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-within-jqueryui-dialog-find-records-goes-behind-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/jqgrid-within-jqueryui-dialog-find-records-goes-behind-dialog/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>soquestion on JQgrid within JqueryUI dialog -- Find Records goes behind dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-within-jqueryui-dialog-find-records-goes-behind-dialog#p28582</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-within-jqueryui-dialog-find-records-goes-behind-dialog#p28582</guid>
        	        	<description><![CDATA[<p>The code below uses JQgrid within a JqueryUI dialog. When the &#39;Find Records&#39; button is pressed first time, filter form appears fine in front of the grid. Close the filter, fine. Open the filter, fine, close it fine.</p>
<p>But the 3rd time press Find Records&#39; button, the filter form appears behind the dialog form. Any ideas as to cause/solution &#8212; so that the filter form always appears in front of the grid and the dialog? Thanks&#8230;</p>
<p>(and&#8230; I do need the dialog to _NOT_ be Modal)</p>
</p>
<p>&#8212;</p>
<p>&#60;!doctype html&#62;<br />&#60;html lang="en"&#62;<br />&#60;head&#62;&#160; <br />&#60;meta charset="utf-8&#8243;&#62;&#160; <br />&#60;title&#62;tabs demo&#60;/title&#62;&#160;</p>
<p>&#60;link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css"&#62;&#160; <br />&#60;script src="http://code.jquery.com/jquery-1.9.1.js%22%3E%3C/script"&#62;&#60;/script&#62;</p>
<p>&#60;!&#8211; &#60;script src="js/jquery-1.9.0.min.js" type="text/javascript"&#62;&#60;/script&#62; &#8211;&#62;<br />&#60;script src="js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8&#8243; /&#62;<br />&#60;title&#62;My First Grid&#60;/title&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="css/ui-lightness/jquery-ui.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" /&#62;</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62; <br />&#60;button id="opener"&#62;open the dialog&#60;/button&#62;<br />&#60;div id="dialog" title="My Test"&#62;<br />&#160;&#160;&#160; &#60;table id="MyGrid"&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id="MyGridDiv" MyGrid&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#60;/div&#62;&#160;&#160;&#160;&#160;&#160;&#160;</p>
<p>&#60;script&#62;<br />$( "#dialog" ).dialog({ autoOpen: false});<br />$( "#opener" ).click(function() {&#160; <br />$( "#dialog" ).dialog( "open" );});<br />&#60;/script&#62;</p>
<p>&#60;script&#62;<br />jQuery("#MyGrid").jqGrid({<br />datatype: "local",<br />height: 250,<br />colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />colModel:[<br />{name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:"int"},<br />{name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, sorttype:"date"},<br />{name:&#39;name&#39;,index:&#39;name&#39;, width:100},<br />{name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",sorttype:"float"},<br />{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",sorttype:"float"},&#160;&#160;&#160;&#160; <br />{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",sorttype:"float"},&#160;&#160;&#160;&#160;&#160; <br />{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false}&#160;&#160;&#160;&#160;&#160;&#160; <br />],<br />multiselect: true,<br />pager: &#39;#MyGridDiv&#39;,&#160; &#60;!&#8211; required for search dialog &#8211;&#62;<br />caption: "Test"<br />});<br />var mydata = [<br />{id:"1",invdate:"2007-10-&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />{id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />{id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},<br />{id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />{id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />{id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},<br />{id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},<br />{id:"8",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},<br />{id:"9",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}<br />];<br />for(var i=0;i&#60;=mydata.length;i++)<br />jQuery("#MyGrid").jqGrid(&#39;addRowData&#39;,i+1,mydata[i]);</p>
<p>&#60;!&#8211; Search options&#8211;&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />jQuery("#MyGrid").jqGrid(&#39;navGrid&#39;,&#39;#MyGridDiv&#39;,<br />{<br />del:false,add:false,edit:false},{},{},{},{multipleSearch:true}<br />);</p>
<p>&#60;/script&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p></p>
]]></description>
        	        	<pubDate>Thu, 04 Apr 2013 17:53:06 +0300</pubDate>
        </item>
</channel>
</rss>