Hi there,
I've got a ListGrid with some ListGridFields. In one of these fields an icon is shown. The ListGridFieldType of that field is ICON. I now want to exchange the icon, when the user clicks on this field. However, this seems to be a big problem with smartgwt.
I've tried to simply call setIcon(String iconURL) again (I've set the icon in this way when the ListGrid is build for the first time), but this doesn't work.
setCellIcon(String iconURL) behaves in the same way.
I've tried to call refreshCell(rowNum, colNum); after the new icon url was set or even redraw() the whole ListGrid but this doesn't change the icon image either. refreshFields() gives the some result.
The thing is, that the icon url is changed for smartgwt (at least when I call getIcon() it returns the correct url). However, if I examine the DOM tree directly, there is still the wrong URL set in the "src" tag of that element and consequently the icon doesn't change.
Anybody has an idea? Any help much appreciated!
Best regards,
Henry
I've got a ListGrid with some ListGridFields. In one of these fields an icon is shown. The ListGridFieldType of that field is ICON. I now want to exchange the icon, when the user clicks on this field. However, this seems to be a big problem with smartgwt.
I've tried to simply call setIcon(String iconURL) again (I've set the icon in this way when the ListGrid is build for the first time), but this doesn't work.
setCellIcon(String iconURL) behaves in the same way.
I've tried to call refreshCell(rowNum, colNum); after the new icon url was set or even redraw() the whole ListGrid but this doesn't change the icon image either. refreshFields() gives the some result.
The thing is, that the icon url is changed for smartgwt (at least when I call getIcon() it returns the correct url). However, if I examine the DOM tree directly, there is still the wrong URL set in the "src" tag of that element and consequently the icon doesn't change.
Anybody has an idea? Any help much appreciated!
Best regards,
Henry
Comment