AdminUI - grid - export to Excel / CSV / HTML - provide cell and row to format functions

Andrii Bezuglyi
2019-03-12T16:13:42+02:00

When a cell in grid has a custom format function, it accepts 3 parameters:

value

cell

row

But when you export the very same grid to excel / html / csv - you have only the "value" parameter. I found my peace with undefined cell and just check its type - if it is object or not. Though that is not too comfortable :)

But I really do need row - I need to be able to look at other columns values. Otherwise, all I could do - return empty cells for columns, which builds their value client-side from other column's values.