Feb 19, 2009, 1:15 PM
How to Change dynamically the render [HTML code] of a cell in a grid panel
Hi everybody,
I'm on 0.7 and I just want to change dynamically the render [HTML code] of a cell in a grid panel.
In my case, I have a gridPanel with one column containing an icon.
cell.innerHtml = '<img style="cursor:pointer;" src="../Images/cross_gray.gif" />'. to switch the icon inside the cell.
Is it possible or am I dreaming awake...
I'm on 0.7 and I just want to change dynamically the render [HTML code] of a cell in a grid panel.
In my case, I have a gridPanel with one column containing an icon.
//javascript
var WarnRender = function(value,store,record) {
return '<img style="cursor:pointer;" src="../Images/cross_gray.gif" />';
}
And when i click on the cell, I want to do something like : cell.innerHtml = '<img style="cursor:pointer;" src="../Images/cross_gray.gif" />'. to switch the icon inside the cell.
Is it possible or am I dreaming awake...