On Monday, November 21, 2011 7:06:25 AM UTC-5, villas wrote:
>
> Massimo,  
>
> I tried the expressions,  but it did not seem to work.  Could you consider 
> providing an example so we could get that working?  
>
> I would be delighted if VirtualFields could be displayed.  Do you think 
> that this would be possible?
>

The 'links' argument can be a list of lambdas that take the 'row' object as 
an argument, or a list of dictionaries with keys 'header' (for the column 
header) and 'body' for the lambda function (links that are dictionaries get 
their own column; otherwise, they get added to the last column with the 
view/edit/delete buttons). Perhaps you could use this to display virtual 
fields associated with the row. Something like:

links=[dict(header='myfield', body=lambda row: row.myfield)]

Haven't tried it, though, so not sure it will work.

Anthony 

Reply via email to