I have my grid set up so that it receives some additional information in the json response. I want to use this additional information in the row's commands, but I can't quite figure out how. I've tried putting it in a hidden column, and the data is rendered (but not shown, as expected), but if I try to use #= variable # it literally appends that to the classes, not the value of that row cell.
How can I reference a row value elsewhere in the row? Using a template is fine if necessary.
5 Answers, 1 is accepted
Please check out following example which demonstrates how to get the corresponding data item to which the row is bound on custom command button’s click event:
Please check it out and let me know if it helps you.
You can use a dataBound event to traverse all rows and change/add a class name. The same way you will be able to change the text of the command column. Please check the following dojo.