Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid image field and imageURLPrefix

    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:

    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 };
    Case 1
    Code:
    { ...ListImageField,
    name: CONSTANT.TYPE,
    imageURLPrefix: "[SKINIMG]users/",
    imageURLSuffix: ".png",
    canHover: false, showHover: false
    }
    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
    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",
         });;
    }
    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.
    Last edited by Hirn; 7 Jul 2026, 08:14.

    #2
    Thanks for the report - we see the issue and will update here when it's been fixed and ported to your branch.

    Comment


      #3
      A fix was applied for this and you can try it out in today's builds, dated July 8.

      Comment

      Working...
      X