I m working on a project which requires the functionality of this component. However, when I populate a table, some columns arent rendered at first and they are rendered after a click event. Also, the columns widths get bigger than I set at the beginning. I suspect it could be because of change even but I am using the code given in the examples for "cellChangeEvent".
Thank you for the help in advance!
Code: Select all
<pe:sheet id="sheetALS-Single" widgetVar="sheetWidgetALS" value="#{aLSSingleInputView.sheetRows}" var="row"
height="600" rowKey="#{row.rowID}" fixedCols="3"
styleClass="ALS-sheet" showRowHeaders="false" >
<p:ajax event="change" listener="#{aLSSingleInputView.cellChangeEvent}" />
<f:facet name="header">
<pe:sheetcolumn styleClass="mycolumn-ALS-header" headerText="Month" value="#{aLSSingleInputView.headers[row.rowID][0]}" colWidth="45" />
<h:outputText value="Rows" />
</f:facet>
<f:facet name="footer">
<h:outputText value="#{aLSSingleInputView.sheetRows.size()} Records" />
</f:facet>
<pe:sheetcolumn styleClass="mycolumn-ALS-header" headerText="Month" value="#{aLSSingleInputView.headers[row.rowID][0]}" colWidth="45" />
<pe:sheetcolumn styleClass="mycolumn-ALS-header" headerText="Class" value="#{aLSSingleInputView.headers[row.rowID][1]}" colWidth="45" />
<pe:sheetcolumn styleClass="mycolumn-ALS-header" headerText="Axle Load" value="#{aLSSingleInputView.headers[row.rowID][2]}" colWidth="70" />
<pe:sheetcolumn styleClass="mycolumn-ALS" headerText="3000" value="#{row.values[0]}" colWidth="50" />
<pe:sheetcolumn styleClass="mycolumn-ALS" headerText="4000" value="#{row.values[1]}" colWidth="50" />
......... (and there are some other columns)