View Full Version : ColumnModel and Renderer

27 Nov 2006, 1:37 AM

I try to implement a DataGrid (or it will be more a DataRepeater). I found that I can override the Renderer method of the DefaultColumnModel. But is it possible to override or extend the method that will render the rows? I'd like to add a second line for rows i.e. if a Date column will change the month to display a sum or whatever.


27 Nov 2006, 1:41 AM
Maybe one more questions: how can I access other data columns from a custom renderer?

27 Nov 2006, 5:56 AM
Look at the docs or examples. I think every one of them has at least one column that uses a renderer function.

27 Nov 2006, 8:41 PM
Jack gave me some pointers on writing a custom row renderer in this thread:

28 Nov 2006, 2:25 AM
I alread did that, but my question was how to implement something like a second, third,... line for one data row if fields are equal to whatever.

There is an example web page showing a date seperator line for each day of a schedule of orders. At the end of the schedule I see "End of schedule". Currently this page uses a type of shopping cart, but it would be great to use a grid and drag&drop instead.


username: free
password: free

28 Nov 2006, 5:24 AM
There is no built-in way to do this.

You could extend the GridView object and add it to the rendering but it wouldn't be trivial.