<?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: Grid with Forn editing on tab</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab</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/grid-with-forn-editing-on-tab/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>maggie on Grid with Forn editing on tab</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3918</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3918</guid>
        	        	<description><![CDATA[<p>This is helpful. I checked the execution of scripts and figured out that I need to put the reference to the grid script on the tab page, and remove the htl header&#160; part from the grid page. It works now. Here are my codes:</p>
<p>Tab page:</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....tional.dtd</a>"&#62;<br />&#60;html&#62;<br />&#160;&#60;head&#62;<br />&#160;&#160;&#60;title&#62;Test Tab&#60;/title&#62;</p>
<p>&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery.tabs/jquery.tabs.css" /&#62;<br />&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery.tabs/jquery.tabs-ie.css" /&#62;</p>
<p>&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/basic/grid.css" /&#62;<br />&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/jqModal.css" /&#62;<br />&#160;<br />&#160;&#160;&#160;<br />&#160;&#160;&#60;script src="jquery/jquery.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;<br />&#160;&#160;&#60;script src="jquery.tabs/jquery.history_remote.pack.js"<br />&#160;&#160;&#160;type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery.tabs/jquery.tabs.pack.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;&#160;<br />&#160;&#160;<br />&#160;&#160;&#60;script src="jquery/jquery.jqGrid.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery/js/jqModal.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery/js/jqDnR.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;</p>
<p>&#160;&#160;&#60;script type="text/javascript"&#62; <br />&#160;&#160;jQuery(document).ready(function(){ <br />&#160;&#160;<br />&#160;&#160;&#160; $(&#39;#navtabs&#39;).tabs({remote:true}); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/script&#62;<br />&#160;&#60;/head&#62;<br />&#160;&#60;body&#62;<br />&#160;&#160;&#160; &#60;p&#62;Testing tab and grid, form editing for the Weekly Report.&#60;/p&#62;<br />&#160;&#160; <br />&#160;&#160;&#60;!--&#160; id attribute for the DIV container MUST be the same as the element selector in step 3 above: &#39;navtabs&#39;--&#62;<br />&#160;&#160;&#60;div id=&#39;navtabs&#39;&#62;<br />&#160;&#160;&#160;&#60;ul&#62;<br />&#160;&#160;&#160;&#160;&#60;li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;a href=&#39;testJqGrid.do&#39;&#62;&#60;span&#62;Tab 1&#60;/span&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;/a&#62;<br />&#160;&#160;&#160;&#160;&#60;/li&#62;<br />&#160;&#160;&#160;&#160;&#60;li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;a href=&#39;testEcho.do&#39;&#62;&#60;span&#62;Tab 2 &#60;/span&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;/a&#62;<br />&#160;&#160;&#160;&#160;&#60;/li&#62;</p>
<p>&#160;&#160;&#160;&#60;/ul&#62;<br />&#160;&#160;&#60;/div&#62;</p>
</p>
<p>&#160;&#60;/body&#62;<br />&#60;/html&#62;</p>
</p>
<p>Grid page (It should be just segment of html which does not include header):</p>
<p>&#160;&#160;&#60;table id="editgrid" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/&#62;&#60;/table&#62;<br />&#160;&#160;&#60;div id="pager" class="scroll" style="text-align: center;"&#62;&#60;/div&#62;<br />&#160;&#160;<br />&#160;&#160;&#60;input type="BUTTON" id="bedata" value="Edit Selected" /&#62;<br />&#160;&#160;<br />&#160;&#160;&#60;script type="text/javascript"&#62; <br />&#160;&#160;&#160;<br />&#160;&#160;&#160;jQuery(document).ready(function(){ <br />&#160;&#160;&#160;&#160;&#160; jQuery("#editgrid").jqGrid({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="&#39;servlet/testGrid&#39;" target="_blank">url:&#39;servlet/testGrid&#39;</a>, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;xml&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invid&#39;, index:&#39;invid&#39;, width:60, editable:true,editoptions:{readonly:true,size:10}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false, editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}} ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;), <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;invid&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;jquery/themes/basic/images&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;My first grid&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl:&#39;servlet/testGridUpdate&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#bedata").click(function(){<br />&#160;&#160;&#160;&#160;&#160; &#160;var gr = jQuery("#editgrid").getGridParam(&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160; if( gr != null ) jQuery("#editgrid").editGridRow(gr,{width: 600, height:280, modal:false, reloadAfterSubmit:false});<br />&#160;&#160;&#160;&#160; &#160;&#160;else alert("Please Select Row");<br />&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160;&#160;&#160; &#60;/script&#62;</p>
</p>
<p>Thanks!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Fri, 09 Jan 2009 15:56:47 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on Grid with Forn editing on tab</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3917</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3917</guid>
        	        	<description><![CDATA[<p>This is helpful. I checked the execution of scripts and figured out that I need to put the reference to the grid script on the tab page, and remove the htl header&#160; part from the grid page. It works now. Here are my codes:</p>
<p>Tab page:</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....tional.dtd</a>"&#62;<br />&#60;html&#62;<br />&#160;&#60;head&#62;<br />&#160;&#160;&#60;title&#62;Test Tab&#60;/title&#62;</p>
<p>&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery.tabs/jquery.tabs.css" /&#62;<br />&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery.tabs/jquery.tabs-ie.css" /&#62;</p>
<p>&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/basic/grid.css" /&#62;<br />&#160;&#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="jquery/themes/jqModal.css" /&#62;<br />&#160;<br />&#160;&#160;&#160;<br />&#160;&#160;&#60;script src="jquery/jquery.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;<br />&#160;&#160;&#60;script src="jquery.tabs/jquery.history_remote.pack.js"<br />&#160;&#160;&#160;type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery.tabs/jquery.tabs.pack.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;&#160;<br />&#160;&#160;<br />&#160;&#160;&#60;script src="jquery/jquery.jqGrid.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery/js/jqModal.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#60;script src="jquery/js/jqDnR.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;</p>
<p>&#160;&#160;&#60;script type="text/javascript"&#62; <br />&#160;&#160;jQuery(document).ready(function(){ <br />&#160;&#160;<br />&#160;&#160;&#160; $(&#39;#navtabs&#39;).tabs({remote:true}); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/script&#62;<br />&#160;&#60;/head&#62;<br />&#160;&#60;body&#62;<br />&#160;&#160;&#160; &#60;p&#62;Testing tab and grid, form editing for the Weekly Report.&#60;/p&#62;<br />&#160;&#160; <br />&#160;&#160;&#60;!--&#160; id attribute for the DIV container MUST be the same as the element selector in step 3 above: &#39;navtabs&#39;--&#62;<br />&#160;&#160;&#60;div id=&#39;navtabs&#39;&#62;<br />&#160;&#160;&#160;&#60;ul&#62;<br />&#160;&#160;&#160;&#160;&#60;li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;a href=&#39;testJqGrid.do&#39;&#62;&#60;span&#62;Tab 1&#60;/span&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;/a&#62;<br />&#160;&#160;&#160;&#160;&#60;/li&#62;<br />&#160;&#160;&#160;&#160;&#60;li&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;a href=&#39;testEcho.do&#39;&#62;&#60;span&#62;Tab 2 &#60;/span&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;/a&#62;<br />&#160;&#160;&#160;&#160;&#60;/li&#62;</p>
<p>&#160;&#160;&#160;&#60;/ul&#62;<br />&#160;&#160;&#60;/div&#62;</p>
</p>
<p>&#160;&#60;/body&#62;<br />&#60;/html&#62;</p>
</p>
<p>Grid page (It should be just segment of html which does not include header):</p>
<p>&#160;&#160;&#60;table id="editgrid" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/&#62;&#60;/table&#62;<br />&#160;&#160;&#60;div id="pager" class="scroll" style="text-align: center;"&#62;&#60;/div&#62;<br />&#160;&#160;<br />&#160;&#160;&#60;input type="BUTTON" id="bedata" value="Edit Selected" /&#62;<br />&#160;&#160;<br />&#160;&#160;&#60;script type="text/javascript"&#62; <br />&#160;&#160;&#160;<br />&#160;&#160;&#160;jQuery(document).ready(function(){ <br />&#160;&#160;&#160;&#160;&#160; jQuery("#editgrid").jqGrid({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="&#39;servlet/testGrid&#39;" target="_blank">url:&#39;servlet/testGrid&#39;</a>, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;xml&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invid&#39;, index:&#39;invid&#39;, width:60, editable:true,editoptions:{readonly:true,size:10}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:80, align:&#39;right&#39;, editable:true,editoptions:{size:25}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false, editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}} ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;), <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;invid&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;jquery/themes/basic/images&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;My first grid&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl:&#39;servlet/testGridUpdate&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#bedata").click(function(){<br />&#160;&#160;&#160;&#160;&#160; &#160;var gr = jQuery("#editgrid").getGridParam(&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160; if( gr != null ) jQuery("#editgrid").editGridRow(gr,{width: 600, height:280, modal:false, reloadAfterSubmit:false});<br />&#160;&#160;&#160;&#160; &#160;&#160;else alert("Please Select Row");<br />&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160;&#160;&#160; &#60;/script&#62;</p>
</p>
<p>Thanks!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Fri, 09 Jan 2009 15:56:37 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid with Forn editing on tab</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3909</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3909</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Check to see how tabs load the contents - I mean what is used - get or post or true ajax. It is quite possible that the tabs(the way they call the remoute page) do not allow execution of the scripts.</p>
<p>Check to see if there is a option when the page is loaded in the tab to allow script execution.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 09 Jan 2009 08:28:44 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on Grid with Forn editing on tab</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3900</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-with-forn-editing-on-tab#p3900</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I want to do several ajax tabs on a page, when click on&#160;a tab, a grid is dynamically loaded which allows form editing. I can load the grid successfully when running the grid page (&#39;testJqGrid.jsp&#39;)&#160;directly, but the grid can&#39;t be loaded on the tab.</p>
<p>Do I need to configure the grid page to make it work for tab? I used jQuery Plugin Tabs by Klaus Hartl. Here are my codes:</p>
<p>&#160;&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....tional.dtd</a>"&#62;<br />&#60;html&#62;<br />&#60;head&#62;<br />&#160;&#60;title&#62;Test&#160; grid on tab&#60;/title&#62;</p>
<p>&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery.tabs/jquery.tabs.css" /&#62;<br />&#160;&#60;link rel="stylesheet" type="text/css" media="screen"<br />&#160;&#160;&#160;href="jquery.tabs/jquery.tabs-ie.css" /&#62;</p>
<p>&#160;&#60;script src="jquery.tabs/jquery-1.1.3.1.pack.js"<br />&#160;&#160;&#160;type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#60;script src="jquery.tabs/jquery.history_remote.pack.js"<br />&#160;&#160;&#160;type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#60;script src="jquery.tabs/jquery.tabs.pack.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#160;&#60;script type="text/javascript"&#62; <br />&#160;&#160;jQuery(document).ready(function(){ <br />&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; $(&#39;#navtabs&#39;).tabs({remote:true}); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; });&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />&#160;&#160;&#160;&#60;/script&#62;<br />&#160;&#60;/head&#62;<br />&#160;&#60;body&#62;<br />&#160;&#160;&#160;&#60;div id=&#39;navtabs&#39;&#62;<br />&#160;&#160;&#160;&#60;ul&#62;<br />&#160;&#160;&#160;&#60;li&#62;<br />&#160;&#160;&#160;&#160; &#60;a href=&#39;testJqGrid.jsp&#39;&#62;&#60;span&#62;Grid 1&#60;/span&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;/a&#62;<br />&#160;&#160;&#160;&#160;&#60;/li&#62;<br />&#160;&#160;&#160;&#60;li&#62;<br />&#160;&#160;&#160;&#60;a href=&#39;testJqGrid2.jsp&#39;&#62;&#60;span&#62;Grid 2 &#60;/span&#62;<br />&#160;&#160;&#160;&#160;&#160;&#60;/a&#62;<br />&#160;&#160;&#160;&#60;/li&#62;</p>
<p>&#160;&#160;&#160;&#60;/ul&#62;<br />&#160;&#160;&#60;/div&#62;</p>
<p>&#160;&#60;/body&#62;<br />&#60;/html&#62;</p>
<p>Could someone please share an example?</p>
<p>I see the jqgrid demo site&#160;doing grid on tab (<a href="http://trirand.com/jqgrid/jqgrid.html" target="_blank">http://trirand.com/jqgrid/jqgrid.html</a>), but I can&#39;t figure out how that&#39;s working.</p>
<p>Thanks!</p>
<p>Maggie</p></p>
]]></description>
        	        	<pubDate>Thu, 08 Jan 2009 17:00:00 +0200</pubDate>
        </item>
</channel>
</rss>