p:column under p:datagrid: colspan not working

UI Components for JSF
Post Reply
llper
Posts: 13
Joined: 24 Oct 2011, 14:40

02 Dec 2011, 12:45

Dear all,
I'm trying to use the colspan attribute of p:column under a datagrid. My code:

Code: Select all

<p:dataGrid id="dashboardDG" var="widget" value="#{dashboardBean.droppedWidgets}" rowIndexVar="w" 
		                    rendered="#{not empty dashboardBean.droppedWidgets}" columns="#{dashboardBean.dashboardLayoutValue.numberOfColumns}" rows="#{dashboardBean.dashboardLayoutValue.numberOfRows}" styleClass="crmWidget"> 
		                    
		             	<p:column colspan="#{widget.colSpan}" >
			  				
			  				<crm:widget header="#{widget.name}" value="#{widget}" closable="true" toggleable="false" widgetVar="ww" 
			  					styleClass="crmWidgetColumn crmWidgetColumn#{w} crmWidgetColumnCount#{fn:length(dashboardBean.droppedWidgets)}">
			  					<p:ajax event="close" listener="#{dashboardBean.onWidgetClose}" update="dropArea availableWidgets" />
			  				</crm:widget>
				  				
		  				</p:column>
		            </p:dataGrid>
but unfortunately the colspan does not work. Even if I set a fixed value (e.g, 2) it does not work. It seems to be totally ignored. Am I wrong? Is this a bug? Do I need to fill out a bug request?


I'm using 3.RC1 - snapshot!

Regards,
Davide

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Dec 2011, 14:12

colspan is only supported by datatable.

llper
Posts: 13
Joined: 24 Oct 2011, 14:40

02 Dec 2011, 15:11

Could not be a great expansion to have datagrid support it?

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

02 Dec 2011, 17:08

Not for me, I do not see the advantage or usecase of displaying Identical records with different width

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests