Version v13.1p_2026-06-21/Pro Development Only (2026-06-21)
I noticed what appears to be inconsistent behavior with ListGrid image fields.
I have a common field definition:
Case 1
In this case, the grid always tries to load PNG files from the users folder, even when the value matches an icon defined in the framework icon map (stockIcons.svg).
Case 2
In this case, the icons are loaded correctly from stockIcons.svg. My question is whether the same behavior is expected in case 1 as in case 2.
I noticed what appears to be inconsistent behavior with ListGrid image fields.
I have a common field definition:
Code:
const ListImageField = {
type: "image",
title: " ",
padding: 0,
align: "center",
width: 20, imageHeight: 16, imageWidth: 16,
valueIconLeftPadding: 0,
valueIconRightPadding: 0,
canEdit: false,
escapeHTML: false, canSort: false, canFilter: false, canHide: false, canHover: true, showHover: true };
Code:
{ ...ListImageField,
name: CONSTANT.TYPE,
imageURLPrefix: "[SKINIMG]users/",
imageURLSuffix: ".png",
canHover: false, showHover: false
}
Case 2
Code:
{ ...ListImageField,
name: CONSTANT.TYPE,
canHover: false, showHover: false,
formatCellValue(value, record, rowNum, colNum, grid) {
return isc.Canvas.imgHTML({
src: `[SKINIMG]users/${value}.png`,
width: this.imageWidth,
height: this.imageHeight,
align: "center",
});;
}
Comment