Currently rendered column’s name in render

Currently rendered column’s name in render

aruseniaruseni Posts: 5Questions: 1Answers: 0

Hi guys!

Do I understand correctly that the currently rendered column’s name (by name I mean the “data” property) is no longer available in the render function?

Previously it was possible to obtain it with o.mDataProp (useful if the same rendering function is used for multiple columns and it required to check which column is being rendered). Now I can get the index (meta.col), but not the name.

Using index is certainly a way to address this issue, but it’s much less convenient as it requires some extra code to maintain the correct comparison of indexes (as some columns can get added/removed depending on a number of conditions).

This discussion has been closed.