You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DataGridView Icons in Cell - Does it work the same in WiseJ 3 ? #4930
?color= doesn't do anything in the URL. It can only be used with wisej widgets not HTML. There is nothing in the svg that changes the color, it's a feature of wisej widgets.
The img element doesn't set the size so you get icons that are way too big since svg are usually designed larger. Thus you need to manually set the size.
What about the role ? I think that’s the only way we know what icon was clicked ? I believe the color is changed by whatever in WiseJ returns the image if I remember correctly from WiseJ2
I checked my old WiseJ 2 code and definitly whatever is returning the resource in WiseJ is also setting the color using :src=’resource.wx/Wisej.Ext.FontAwesome/times-circle-o.svg?color=red’ ” I tried setting the color as part of the style but it does not do anything
The recoloring has always been done in javascript in the browser. You can user the embedded svg resource as a src for img but it will not recolor. It never did. It only works with Wisej.NET widgets ImageSource property. In alternative you can use the font character icons and in that case only you can use the color style since it’s a character and not an img.
Activity
itg-assistant commentedon Jun 17, 2026
Julie (ITG) answered 2026-01-13 17:00:54 UTC
It does still work in Wisej 3.
Try this:
Some things to note:
?color= doesn't do anything in the URL. It can only be used with wisej widgets not HTML. There is nothing in the svg that changes the color, it's a feature of wisej widgets.
The img element doesn't set the size so you get icons that are way too big since svg are usually designed larger. Thus you need to manually set the size.
itg-assistant commentedon Jun 17, 2026
edmond girardi answered 2026-01-13 17:06:25 UTC
What about the role ? I think that’s the only way we know what icon was clicked ? I believe the color is changed by whatever in WiseJ returns the image if I remember correctly from WiseJ2
itg-assistant commentedon Jun 17, 2026
Julie (ITG) answered 2026-01-13 18:12:21 UTC
Role is fine, I just didn’t put it in my sample code to keep it simple
itg-assistant commentedon Jun 17, 2026
Julie (ITG) answered 2026-01-13 18:16:09 UTC
Also note that if you use the fontawesone characters you can set the color: var iconHtml3 = “”; You need to edit Default.html and put this in :
itg-assistant commentedon Jun 17, 2026
edmond girardi answered 2026-01-13 22:21:19 UTC
Looks like your last post was cut off – not showing. I was able to get the size in there and now i ca see the icons
itg-assistant commentedon Jun 17, 2026
edmond girardi answered 2026-01-13 22:31:42 UTC
I checked my old WiseJ 2 code and definitly whatever is returning the resource in WiseJ is also setting the color using :src=’resource.wx/Wisej.Ext.FontAwesome/times-circle-o.svg?color=red’ ” I tried setting the color as part of the style but it does not do anything
itg-assistant commentedon Jun 17, 2026
Luca answered 2026-01-14 01:46:49 UTC
The recoloring has always been done in javascript in the browser. You can user the embedded svg resource as a src for img but it will not recolor. It never did. It only works with Wisej.NET widgets ImageSource property. In alternative you can use the font character icons and in that case only you can use the color style since it’s a character and not an img.
itg-assistant commentedon Jun 17, 2026
Julie (ITG) answered 2026-01-14 14:12:55 UTC
Reposting because it got cut off:
If you use the fontawesome characters you can set the color like so:
If you do that, you need to add this to the head in Default.html:
<
/>
See attached sample