I would like to have my command button display different text based on the values in the row. I have tried
But the command's template call doesn't seem to be aware of values in the row like field columns do.
I suppose another alternative would be to have multiple commands in a column, and hide certain ones based on the values in the row, but I am not sure how to do this either.
Thanks,
~S
command: [{ name: "return", click: myHandler, template: '#= getCommandText(col1, col2) #'}]function getCommandText(c1, c2) { //return text based on values in this row}function myHandler(e) { //perform actions based on value in row}But the command's template call doesn't seem to be aware of values in the row like field columns do.
I suppose another alternative would be to have multiple commands in a column, and hide certain ones based on the values in the row, but I am not sure how to do this either.
Thanks,
~S