The code above creates the dijit.Editor in the ContentPane but doesn't fill it with the value stored in the question variable (I have logged and alerted the variable and it does contain the expected value).
However if I replace the variable with a literal string like My String or even something in Japanese like 反乱者 it works just fine.
It even works if I replace: var question = grid.getItem(e.rowIndex).question; with: var question = '反乱者';
Does anybody know why it won't work when using the question variable when it has been assigned it's value via grid.getItem(e.rowIndex).question?
I am still a beginner when it comes to Dojo Toolkit so I'm sure it must be something obvious.
Any help would be appreciated!
( 5 months ago )
I have found the answer to my question now.
It turns out I just needed to change:
var question = grid.getItem(e.rowIndex).question;
var question = grid.store.getValue(grid.getItem(e.rowIndex),'question');