PDA

View Full Version : Grid column header HTML Template



pouniok
7 Aug 2013, 3:32 AM
Hello,


I would like to know, if it's possible to dynamicaly add columns to a grid (with Grid reconfigure option), but to specify an unique column header template for each column added ?

To take a simple example, let's say I have a Grid, with 1 column displaying people names. This column header would be a text : "Lastname".

Then, I want to add a column displaying people Age. The column header should be an HTML template displaying "Born 1st January 1970<br/>In the town of Chicago<br/>At 6:00am".
And then, the data of the column would display Ages in years.

But I could add another column, with a different template.


I searched in GridView headerTpl, but it seems that's the template for ALL header cells, and not a particular one.


Would be grateful for any clue ;)

Thanks,
PouNiOk.

pouniok
7 Aug 2013, 4:17 AM
Got it working extending GridView.renderHeaders !