<?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 in a Google maps InfoWindow</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-in-a-google-maps-infowindow</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-in-a-google-maps-infowindow/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sNagheenanajar on jqGrid in a Google maps InfoWindow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-in-a-google-maps-infowindow#p21823</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-in-a-google-maps-infowindow#p21823</guid>
        	        	<description><![CDATA[<p>I have a jqGrid in an InfoWindow that doesn&#39;t quite work. It shows the data but the &#39;loading &#8230;&#39; div never goes away(see attached screen shot), and the interactions with the columns is not completely functional. For example, if i resize a column nothing happens. Then if i sort one of the columns the resize takes effect(the sort is functional as well). Also, if i horizontally scroll the content scrolls but the headers do not. The loadComplete and gridComplete events both fire and the loadError does not.</p>
<p>Here is a snippit of code</p>
<pre class="alt2" dir="ltr">$.post(&#39;getMaintModel&#39;, {}, function(data){
                    $(&#39;#maintList&#39;).jqGrid(&#39;GridUnload&#39;);
                    colModel = data
                    
                    $("#maintList").jqGrid({
                        url: &#39;getLocationMaintenance&#39;,
                        postData: {
                            &#39;location&#39;: markerFunctionalLocation
                        },
                        sortname: &#39;Equipment&#39;,
                        datatype: &#39;json&#39;,
                        mtype: &#39;POST&#39;,
                        colNames: [],
                        colModel: colModel,
                        height: &#39;180px&#39;,
                        forcefit: false, 
                        shinktofit: false, 
                        autowidth: false,
                        rowNum: 50,
                        rowList: [25, 50, 200],
                        pager: &#39;#maintPager&#39;,
                        viewrecords: true,
                        scroll: 1,
                        prnNames: {
                            &#39;npage&#39;: 10
                        },
                        gridComplete: function(){
                            $(&#39;#maintList&#39;).jqGrid(&#39;setGridWidth&#39;, 500, false)
                            $("#maintList").jqGrid(&#39;navGrid&#39;, &#39;#maintPager&#39;, {
                                edit: false, //add iif based or permission level
                                add: false,
                                del: false,
                                search: false,
                                refresh: false
                            });
                            transformerInfoWindow.setOptions({
                                //content: $(&#39;#infoWindowTabs&#39;).clone(true)[0],
                                //content: $(&#39;#maintenanceTabDiv&#39;).clone(true)[0],
                                content: $(&#39;#maintenanceTabDiv&#39;).html(),
                                position: markerPosition
                            });
                            
                            
                            $([transformerInfoWindow.getContent()]).show();
                            transformerInfoWindow.close();
                            transformerInfoWindow.open(map);
                        }
                    });
                    
                }, &#39;json&#39;);</pre>
</p>
<p>Normally I set the content of the InfoWindow to (&#39;#infoWindowTabs&#39;).clone(true)[0] Which works fine with a&#160;<span style="white-space: pre;">jQuery tabs. But for testing I&#39;m leaving the tab part out and just attempting to get the jqgrid to work. Any ideas?</span></p>
<p><a href="http://www.webdeveloper.com/forum/attachment.php?attachmentid=14057&#38;d=1295917288"><img src="http://www.webdeveloper.com/forum/attachment.php?attachmentid=14057&#38;d=1295917288" width="100"  style="vertical-align: bottom;" class="spUserImage" alt="screenshot" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class=" sfmouseother" alt="Image Enlarger" /></a></p>
]]></description>
        	        	<pubDate>Wed, 26 Jan 2011 02:44:00 +0200</pubDate>
        </item>
</channel>
</rss>