You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by mkgolfer <mk...@yahoo.com> on 2011/08/01 19:31:21 UTC
Column Grouping
Hi All,
We have a need for column grouping for our grids/tables. Is there another
way besides custom code within the renderHeaderRow method? Has anybody
created a control to extend Table and Formtable to set column groupings?
I have code like this in the renderHeaderRow method:
buffer.append("<th style='text-align:center' bgcolor='#6699CC'
colspan='4'>Payback</th>");
buffer.append("<th style='text-align:center' bgcolor='#6699CC'
colspan='2'>Expected Payback</th>");
buffer.append("<th style='text-align:center' bgcolor='#6699CC'
colspan='2'>Approval</th>");
buffer.append("</tr>");
buffer.append("<tr>");
buffer.append("<tr>");
buffer.append("<th class='sortable' bgcolor='#6699CC'>
/wasns_click/wasn.htm?actionLink=dailyTotalsTable-controlLink&column=schedDate&page=0
Date    </th>");
buffer.append("<th style='text-align:right' bgcolor='#FFBBDD'>Peak</th>");
buffer.append("<th style='text-align:right' bgcolor='#C0FF97'>Off
Peak</th>");
buffer.append("<th></th>");
buffer.append("<th style='text-align:right' bgcolor='#FFBBDD'>Peak</th>");
buffer.append("<th style='text-align:right' bgcolor='#C0FF97'>Off
Peak</th>");
buffer.append("<th></th>");
buffer.append("<th>Notes</th></tr></thead>");
Is there another was to do this?
Thanks
Mark K.
--
View this message in context: http://click.1134972.n2.nabble.com/Column-Grouping-tp6641832p6641832.html
Sent from the click-user mailing list archive at Nabble.com.
Re: Column Grouping
Posted by mkgolfer <mk...@yahoo.com>.
Hi Bob,
Ok thanks...one can always hope! If I create a Table and FormTable control
to do groupings, can I contribute to the project?
Thanks
Mark K
--
View this message in context: http://click.1134972.n2.nabble.com/Column-Grouping-tp6641832p6646761.html
Sent from the click-user mailing list archive at Nabble.com.
Re: Column Grouping
Posted by Bob Schellink <sa...@gmail.com>.
Hi Mark,
I'm not aware of any custom Table supporting grouping. You could always create a custom table for
your project to support grouping.
regards
Bob
On 2011/08/01 19:31 PM, mkgolfer wrote:
> Hi All,
> We have a need for column grouping for our grids/tables. Is there another
> way besides custom code within the renderHeaderRow method? Has anybody
> created a control to extend Table and Formtable to set column groupings?
>
> I have code like this in the renderHeaderRow method:
> buffer.append("<th style='text-align:center' bgcolor='#6699CC'
> colspan='4'>Payback</th>");
> buffer.append("<th style='text-align:center' bgcolor='#6699CC'
> colspan='2'>Expected Payback</th>");
> buffer.append("<th style='text-align:center' bgcolor='#6699CC'
> colspan='2'>Approval</th>");
> buffer.append("</tr>");
> buffer.append("<tr>");
> buffer.append("<tr>");
> buffer.append("<th class='sortable' bgcolor='#6699CC'>
> /wasns_click/wasn.htm?actionLink=dailyTotalsTable-controlLink&column=schedDate&page=0
> Date   </th>");
> buffer.append("<th style='text-align:right' bgcolor='#FFBBDD'>Peak</th>");
> buffer.append("<th style='text-align:right' bgcolor='#C0FF97'>Off
> Peak</th>");
> buffer.append("<th></th>");
> buffer.append("<th style='text-align:right' bgcolor='#FFBBDD'>Peak</th>");
> buffer.append("<th style='text-align:right' bgcolor='#C0FF97'>Off
> Peak</th>");
> buffer.append("<th></th>");
> buffer.append("<th>Notes</th></tr></thead>");
> Is there another was to do this?
>
> Thanks
>
> Mark K.
>
> --
> View this message in context: http://click.1134972.n2.nabble.com/Column-Grouping-tp6641832p6641832.html
> Sent from the click-user mailing list archive at Nabble.com.
>