gte619n
27 Oct 2008, 12:50 PM
Hey Guys,
I've got an EditorGrid that I'm trying to change the value of when the user clicks on a cell. I'm getting some strange behavior when I go to make the change. On the GridEvent, I do a :
grid.getView().getCell( be.rowIndex, be.colIndex );
to get the Cell, then I do a setInnerText to attempt to change the value. Curiously, this changes the innerHTML, not just the innerText. I guess what's confusing me is when I do a getInnerHTML and getInnerText, the values are different, with getInnerHTML being the full HTML value, and innerText being just the text value.
Is there a better way to change that value?
Thanks!
Evan Ruff
I've got an EditorGrid that I'm trying to change the value of when the user clicks on a cell. I'm getting some strange behavior when I go to make the change. On the GridEvent, I do a :
grid.getView().getCell( be.rowIndex, be.colIndex );
to get the Cell, then I do a setInnerText to attempt to change the value. Curiously, this changes the innerHTML, not just the innerText. I guess what's confusing me is when I do a getInnerHTML and getInnerText, the values are different, with getInnerHTML being the full HTML value, and innerText being just the text value.
Is there a better way to change that value?
Thanks!
Evan Ruff