<?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: subgrid stuck on "Loading..."</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading</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/subgrid-stuck-on-loading/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lance123 on subgrid stuck on "Loading..."</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25724</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25724</guid>
        	        	<description><![CDATA[<p>Hi To All,</p>
<p>Final update on this thread. &#160;For my issue it was a combination of my previous post on a bug from jQuery giving us errors when trying to trigger the subgrid. &#160;But the main problem was as follows:</p>
<p>The subgrid was inherriting its datatype from the parent grid which was local. &#160;We needed to explicitly set the subgrid type to xml as follows:</p>
<p class="p1">subgridtype: &#39;xml&#39;,</p>
<p class="p1">&#160;</p>
<p class="p1">Regards,&#160;</p>
<p class="p1">Lance</p></p>
]]></description>
        	        	<pubDate>Wed, 18 Jan 2012 23:16:01 +0200</pubDate>
        </item>
        <item>
        	<title>nelsonm on subgrid stuck on "Loading..."</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25593</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25593</guid>
        	        	<description><![CDATA[<p>While i did not study the posted code, i have found that in my experence with jqGrid,</p>
<p>getting stuck on "loading" was either a jqgrid coding error or an error in my php script and not a bug in jqgrid.</p>
</p>
<p>Try commenting out sections of the jqgrid code and/or temporarally hard coding a vaiid</p>
<p>response from the php script.&#160; Its called the process of elimination.</p>
]]></description>
        	        	<pubDate>Thu, 05 Jan 2012 02:32:30 +0200</pubDate>
        </item>
        <item>
        	<title>lance123 on subgrid stuck on "Loading..."</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25588</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25588</guid>
        	        	<description><![CDATA[<p>Hi Joe, The issue is a bug with jquery possibly. &#160;I ran into this too. &#160;And could see errors in the console:</p>
<p>&#160;<!--StartFragment-->error in Chrome &#39;loading&#39; dialog never finishes<br /> 208 event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.<br /> Please review <span style="text-decoration: underline;"><a href="http://stackoverflow.com/questions/7825448/webkit-issues-with-event-layerx-and-event-layery" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....ent-layery</a></span>&#160;</p>
<p>I think the bug is fixed in the latest jQuery. &#160;Let me know if that sorts it?</p>
<p>Hope that helps.</p>
<p>Regards,</p>
<p>Lance</p>
]]></description>
        	        	<pubDate>Wed, 04 Jan 2012 23:21:52 +0200</pubDate>
        </item>
        <item>
        	<title>jbenckert on subgrid stuck on "Loading..."</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25546</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-stuck-on-loading#p25546</guid>
        	        	<description><![CDATA[<p>Hello all,</p>
<p>I&#39;ve configured a subgrid like below and when I try to expand the rows it just spins on "Loading" forever. &#160;Using the network browser tools it looks like there&#39;s never actually a request made to the server.&#160;</p>
</p>
<p>Can anyone advise on how to troubleshoot?</p>
</p>
<p>Thanks.</p>
</p>
<p>-Joe</p>
</p>
<pre>var listDataURL = &#39;/cms/getDashboardCampaignData.do&#39;;
	var initialPageSize = 20;
	var maxRecords = 10000;
	var pageSizes = [initialPageSize, 40, 80,  maxRecords];
	
	// jqGrid Configurations
	jq(function() {
		jQuery("#campaignPerformanceGrid").jqGrid({
		   	url:listDataURL,
			datatype: &#39;json&#39;,
			mtype: &#39;POST&#39;,
		   	colNames:[&#39;campaignID&#39;, &#39;% Complete&#39;, &#39;CampaignName&#39;, &#39;Priority&#39;, &#39;CTR&#39;,&#39;Pricing Model&#39;,&#39;Start&#39;, &#39;More Info&#39;],
		   	colModel:[
		   		{name:&#39;campaignId&#39;,index:&#39;campaignId&#39;,sorttype:"int", hidden:true},
		   		{name:&#39;completionPercentage&#39;,index:&#39;completionPercentage&#39;,sorttype:"float"},
		   		{name:&#39;name&#39;,index:&#39;name&#39;,sorttype:"text"},
		   		{name:&#39;priority&#39;,index:&#39;priority&#39;,sorttype:"int"},
    		    {name:&#39;ctr&#39;,index:&#39;ctr&#39;,sorttype:"float"},
    		    {name:&#39;pricingModel&#39;,index:&#39;pricingModel&#39;,sorttype:"text"},
    		    {name:&#39;startDate&#39;,index:&#39;startDate&#39;,sorttype:"date"},													
		   		{name:&#39;campaignId&#39;, index:&#39;campaignId&#39;, formatter:moreInfoFormatter, sortable:false}
		   	],
		   	postData: { },
			rowNum:initialPageSize,
		   	rowList:pageSizes,
        	height: "auto",
        	width: 800,
		   	//autowidth: true,
			altRows     : true,
			ignoreCase: true, //Filter and Sort is case-insensitive
		   	pager: &#39;#pager&#39;,
		    viewrecords: true,
		   	sortname: &#39;name&#39;,
		    sortorder: "asc",
		    caption:"",
		    emptyrecords: "No data found",
		    loadonce: true,
		    loadComplete: function() { },
		    jsonReader : {
		        root: "rows",
		        page: "page",
		        total: "total",
		        records: "records",
		        repeatitems: false,
		        cell: "cell",
		        id: "id"
		    },
		    subGrid: true,
		    subGridUrl: &#39;/cms/getDashboardCampaignSubGridData.do&#39;,
		    subGridModel : [ 
		      {
		      name  : [&#39;flightId&#39;],
		      width : [55],
		      align : [&#39;left&#39;]
		      }
		    ]
		});
		
		// Set Label for rowList
		jQuery("#pager option[value=" + maxRecords + "]").text(&#39;All&#39;);
		
		
		// Navigation Toobar
		jQuery("#grid").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,
			{add:false, del:false, edit:false, search:false, refresh:true, 
				beforeRefresh:function() {jq("#grid").jqGrid(&#39;setGridParam&#39;, {url:listDataURL, datatype:"json"}); }
			},
			{ }, //settings for edit
		    { }, // settings for add
		    { }, // settings for delete
			{}   // enable the advanced searching
		);
		/*
		jq("#grid").navButtonAdd(&#39;#pager&#39;,
				{ 	caption:"", 
					buttonicon:"ui-icon-plus", 
					onClickButton: showCreateAdvertiserPage,
					position: "last", 
					title:"Create New Advertiser", 
					cursor: "pointer"
				}
		);*/ 
		
		jQuery("#grid").jqGrid(&#39;filterToolbar&#39;,{stringResult: true,searchOnEnter : false});
		
	});
</pre>
]]></description>
        	        	<pubDate>Thu, 29 Dec 2011 15:55:01 +0200</pubDate>
        </item>
</channel>
</rss>