<?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 does not expand when grouping is active</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active</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/bugs/subgrid-does-not-expand-when-grouping-is-active/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on subgrid does not expand when grouping is active</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p31025</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p31025</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>In subGridRowExpanded you define custom functions ciDetailsFormatter and function detailsFormatter.</p>
<p>These are executed every time you expand the grid and of course this will bring a error</p>
<p>Define these functions outside this subgrid scope.</p>
<p>The more simple way is just to use very simple subgrid and then add other custom things.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Fri, 29 Aug 2014 10:49:45 +0300</pubDate>
        </item>
        <item>
        	<title>lili5058 on subgrid does not expand when grouping is active</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p31015</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p31015</guid>
        	        	<description><![CDATA[<p>Here is the text from</p>
<p>		var billGrid;<br />
		var colModelNames = [ 'serviceName', 'CI_NAME', 'volumeName','CI_TYPE','UDDS', 'amount', 'billingCodeCmdb', 'ovrrdBillingCode', 'isSplitBilling', 'billingCodeType'];<br />
		var emptyMsgDiv = $('There are no unposted rows');<br />
		$(function(){<br />
			var targetPage = 1;<br />
	  		billGrid = $("#list").jqGrid({<br />
		    url:"${createLink(controller:'storageBilling', action:'getSummaryBillData', params:[id:billing.id, postedStatus: 'canBePosted'])}",<br />
		    datatype: 'json',<br />
		    mtype: 'GET',<br />
		    colNames:[ 'SEO Service billed', 'CI billed', 'Volume Name','CI Type','UDDS', 'Amount Billed','CMDB Billing code','Billing Code Override', 'Split', 'Billing Code Type', 'SourceBillable'],<br />
		    colModel :[<br />
		      {name:colModelNames[0],width:60, sortable:true, sorttype:'text'},<br />
		      {name:colModelNames[1], width:50, editable:true, edittype:'text', formatter:formatCiName},<br />
		      {name:colModelNames[2], width:70, sortable:true, sorttype:'text'},<br />
		      {name:colModelNames[3], width:50, sortable:true, sorttype:'text'},<br />
		      {name:colModelNames[4], width:30, sortable:true},<br />
		      {name:colModelNames[5], width:30, sortable:true, align:'right', formatter:'currency', sorttype:'currency',<br />
		      			formatoptions:{decimalPlaces:0,prefix:'$'},summaryType:'sum'},<br />
			  {name:colModelNames[6], width:50, editable:true, sortable:true},<br />
		      {name:colModelNames[7], width:50, editable:true, sortable:true},<br />
		      {name:colModelNames[8], width:50},<br />
		      {name:colModelNames[9],hidden:true},<br />
		      {name:'sourceBillable', hidden:true}<br />
		    ],<br />
		    width: '1000',<br />
		    toppager:true,<br />
		    height: '100%',<br />
		    pager: '#pager',<br />
		    rowNum:1000,<br />
		    rowList:[10,20,50,100,1000],<br />
		    viewrecords: true,<br />
		    gridview: true,<br />
		    jsonReader:{repeatitems: false},<br />
		    loadonce: true,<br />
		    footerrow : true,<br />
		    grouping:true,<br />
		    groupingView: {<br />
		    	groupField:['billingCodeType','billingCodeCmdb'],<br />
		    	groupOrder:['asc','asc'],<br />
		    	groupSummary:[true,true],<br />
		    	groupColumnShow:[false,false],<br />
		    	groupCollapse:false,<br />
		    },<br />
		    subGrid: true,<br />
		    subGridRowExpanded: function(subgrid_id, row_id) {<br />
		       var subgrid_table_id;<br />
		       subgrid_table_id = subgrid_id+"_t";<br />
		       jQuery("#"+subgrid_id).html("&#60;table id='"+subgrid_table_id+"' class='scroll'&#62;&#60;/table&#62;");<br />
		       jQuery("#"+subgrid_table_id).jqGrid({<br />
		          url:'${createLink(controller:'billableServiceItem', action:'getDetails')}&#38;id=' + row_id,<br />
		          datatype: "json",<br />
		          colNames: ['CI Validation Notes','Billing Code Validation Notes','Base CI Data'],<br />
		          colModel: [<br />
		            {name:"valnotes",index:"valnotes",width:200, cellattr:detailsFormatter},<br />
		            {name:"billval",index:"billval",width:200, cellattr:detailsFormatter},<br />
		            {name:"cidetails",index:"cidetails",width:400,formatter:ciDetailsFormatter},<br />
		          ],<br />
		          height: '100%',<br />
		       });<br />
		       function ciDetailsFormatter(cellvalue, options, rowObject){<br />
		       		var ciObj = jQuery.parseJSON(cellvalue);<br />
		       		var ciObjStr = "";<br />
		       		for (var prop in ciObj){<br />
		       			if (ciObj.hasOwnProperty(prop)){<br />
		       				ciObjStr = ciObjStr + prop + ": " + ciObj[prop] + ", ";<br />
		       			}<br />
		       		}<br />
		       		return '<span>' + ciObjStr + '</span>';<br />
		       };<br />
		       function detailsFormatter(rowId, val, rawObject, cm){<br />
		            return 'class="wrapTableCell"';<br />
		       };<br />
		   },<br />
		    caption: 'Storage Items to be billed',<br />
		    loadComplete: onLoadComplete,<br />
		  }).navGrid('#list_toppager', {add:false, del:false, edit:false, refresh:false, search:false},{},{},{},{},{});</p>
]]></description>
        	        	<pubDate>Wed, 27 Aug 2014 22:29:50 +0300</pubDate>
        </item>
        <item>
        	<title>tony on subgrid does not expand when grouping is active</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p31000</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p31000</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>It all depends how you do this.</p>
<p>Maybe you want to show your code.</p>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 21 Aug 2014 17:00:05 +0300</pubDate>
        </item>
        <item>
        	<title>lili5058 on subgrid does not expand when grouping is active</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p30989</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/subgrid-does-not-expand-when-grouping-is-active#p30989</guid>
        	        	<description><![CDATA[<p>I'm using jqGrid 4.6.0 on a grid with both subGrid:true and grouping:true, but when I click the '+' symbol to show the subGrid, nothing happens.</p>
<p>Doing a little debugging showed me that it died in the jqQuery code somewhere and my subGridRowExpanded callback function is never called.</p>
]]></description>
        	        	<pubDate>Wed, 20 Aug 2014 21:59:59 +0300</pubDate>
        </item>
</channel>
</rss>