How to set one column based if condition

How to set one column based if condition

simaRasimaRa Posts: 6Questions: 3Answers: 0

Hi everyone
I want to set value of one column based one condition
if (account_id=='-1)
{data: 'colleague_id', name: 'colleagues.fullname'},
else
{data: 'account_id', name: 'account.account_alias'},

I dont want to set it in controller beacuse its filtering makes error
Thanks

Answers

This discussion has been closed.