Show text for integer?

Show text for integer?

ludwig33ludwig33 Posts: 1Questions: 0Answers: 0

Hi,

if want to show text for an integer value read from db. There should be CAR for integer 0 and TRAIN for integer 1.
How can I solve this? With columnDefs?

best regards
ludwig

Replies

  • allanallan Posts: 63,212Questions: 1Answers: 10,415 Site admin

    Yes - use columns.render as a function and basically define a function that will do the mapping.

    Allan

This discussion has been closed.