Skip to main content
Solved

Custom Icons Not Displaying in Modern UI After Converting a Classic UI Screen

  • Oct 12, 2026 6:55 AM UTC
  • 3 replies
  • 70 views
  • Translate All

I am converting an existing Classic UI screen to Modern UI in Acumatica and facing an issue with custom icons not displaying in the Modern UI.

In the Classic UI, I have custom icons for the Set Default Site button and the Back toolbar button, along with folder and file icons displayed in the grid. These icons work correctly in the Classic UI.

In the Modern UI, I have configured the button icons using @actionConfig in the TypeScript screen definition, as shown below:

@actionConfig({
images: {
normal: "/AcumaticaQMS26R1/Pages/EW/QC/Icons/setdefault.png"
}
})
sPSetDefaultSite: PXActionState;

Similarly, I have configured the Back button icon using back.png. However, the icons are not displaying as expected in the Modern UI.

The Classic UI also uses CSS classes and the grid_RowDataBound event handler to display folder and file icons in the grid. I would like to understand how to implement the same functionality in Modern UI.

My questions are:

  1. What is the correct way to configure custom PNG icons for buttons and toolbar actions in Acumatica Modern UI?
  2. What is the recommended way to specify image paths in the TypeScript screen definition?
  3. How can I display custom folder and file icons in a Modern UI grid, replacing the Classic UI CSS and grid_RowDataBound implementation?
  4. Are there any additional configuration steps or limitations for custom icons in Modern UI?

Any guidance, code examples, or documentation references would be greatly appreciated.

Thank you!

Best answer by aiwan

​@bpatidar72 

 

Could you try something like this:

@actionConfig({ imageUrl: "/AcumaticaQMS26R1/Pages/EW/QC/Icons/setdefault.png" })
sPSetDefaultSite: PXActionState;

 

View original

3 replies

Forum|alt.badge.img+11
  • Captain II
  • Answer
  • Oct 12, 2026 2:59 PM UTC

​@bpatidar72 

 

Could you try something like this:

@actionConfig({ imageUrl: "/AcumaticaQMS26R1/Pages/EW/QC/Icons/setdefault.png" })
sPSetDefaultSite: PXActionState;

 

Translate

KrunalDoshi
Pro II
Forum|alt.badge.img+9

Hi ​@bpatidar72,

Could you please help me with what you have for Classic UI? How you have it working in your Classic UI and how you have converted to Modern UI? That will help me better understand the issue.

Translate

serhiitoronii09
Freshman I

To cover the remaining parts of your question (especially icon paths and replacing grid_RowDataBound):

  1. Button & toolbar icons (@actionConfig):
    In IActionConfig, images / imageUrl expects SVG icons from \Content\svg_icons (using imageSet + imageKey, e.g. { imageSet: "main", imageKey: "Refresh" }, or imageUrl: "svg:main@iconName"). Avoid hardcoding the virtual directory name like /AcumaticaQMS26R1/... in TypeScript decorators since it breaks whenever the site runs under another app root.
  2. Replacing grid_RowDataBound for folder/file icons in a Modern UI grid:
    Instead of RowDataBound, use @handleEvent(CustomEventType.GetCellCss, ...) (or GetRowCss) in your .ts screen/extension together with a .scss file:
@handleEvent(CustomEventType.GetCellCss, { view: "YourView", column: "YourColumn" })
getCellCss(args: CellCssHandlerArgs): string | undefined {
// inspect args?.selector?.row or args?.selector?.cellValue
return isFolder ? "folder-icon-cell" : "file-icon-cell";
}

You can then style .folder-icon-cell and .file-icon-cell in your screen's .scss file (SO301000_FieldsSample.ts under FrontendSources\screen\src\screens\SO\SO301000\extensions\ has a built-in example of GetCellCss).

Translate