How to use a variable from column rendering in rowCallback

How to use a variable from column rendering in rowCallback

mihalispmihalisp Posts: 127Questions: 22Answers: 0

I have some variables declared in a column render function and i want to use that variables in rowCallback.I don't want to write the same piece of code again.

Is it possible?

Thank you.

Answers

  • kthorngrenkthorngren Posts: 20,386Questions: 26Answers: 4,783

    You could possibly use global variables but but you would need to put them in an array - one array element for each row. Then in rowCallback you can access the appropriate array element. Seems like a lot of work and hassle.

    I would consider instead to write a function for any duplicate code.

    Kevin

This discussion has been closed.