web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / AXMentor / Adding Symbol Font Icons to...

Adding Symbol Font Icons to a Grid in Dynamics 365 for Finance and Operations, Enterprise Edition

Community Member Profile Picture Community Member

Adding Symbol Font Icons to a Grid in Dynamics 365 for Finance and Operations, Enterprise Edition

Alex Kwitny

The Microsoft Dynamics AX/D365 Support Team at Avantiico is focused on solving our client’s problems, from daily issues to large and more complex problems.

See All Posts

Adding Symbol Font Icons to a Grid in Dynamics 365 for Finance and Operations, Enterprise Edition

Adding a symbol icon on a grid can be a useful way to provide information to end users and to make the information a bit

Read More »

Public Displays of AX: Why ERP and the Public Sector Are A Perfect Match

Public Displays of AX: Why ERP and the Public Sector Are A Perfect Match Public sector entities are often thought of in completely separate terms

Read More »

Six Features that Modernize the New Microsoft Dynamics AX

Read More »

AX 2012 R3 Load Planning Workbench Use and Purpose for Inbound Purchasing

AX 2012 R3 Load Planning Workbench Use and Purpose for Inbound Purchasing One of the great new features in Microsoft Dynamics AX 2012 R3 for

Read More »

Adding a symbol icon on a grid can be a useful way to provide information to end users and to make the information a bit more visually appealing.  

To do this, first select a symbol you want from the relevant symbol font, which can be found at the link below. This is also useful to keep track of new and changing symbols in every new version. 

https://mbs.microsoft.com/customersource/Global/AX/downloads/hot-fixes/AXSymbolFont

I’ll be using “GreenCheck” and “RedX” for this demonstration, but it will work with all symbols.

I created a simple form with a DataSource and a grid. I chose LogisticsPostalAddress, which is a base form that we are going to extend.

Add some fields and create a new “Image” control on the grid.

We will now create a display method that can be used from the LogisticsPostalAddress DataSource. We don’t want to overlay the table, we want to extend it. To do this, create a final class with a name that ends in “_Extension”. Decorate it with the “ExtensionOf” attribute so that the compiler can handle it.  We are going to create a display method that returns a container.

Here’s the sample code:

*Author’s Note: AKW is my identifier, so your computer will say something different.

We want to set the properties of the image control now: the DataSource property will be LogisticsPostalAddress, the “Data Method” property will be our display method.

Extension methods are not visible using the drop down, so you use a special syntax with style ExtensionClassName::DisplayMethod. So in this case it will be AKWLogisticsPostalAddress_Extension::AKWGridIcon.

Now we can run the form, you will see every other row has the different symbol font icons.

Leave a comment below if there are any other little bugs that bother you, or if you’d like me to address something specific in my next blog post!

Share on facebook
Facebook
Share on google
Google+
Share on twitter
Twitter
Share on linkedin
LinkedIn

Explore Other Content:

Adding Symbol Font Icons to a Grid in Dynamics 365 for Finance and Operations, Enterprise Edition

Adding a symbol icon on a grid can be a useful way to provide information to end users and to make the

Public Displays of AX: Why ERP and the Public Sector Are A Perfect Match

Public Displays of AX: Why ERP and the Public Sector Are A Perfect Match Public sector entities are often thought of in

Six Features that Modernize the New Microsoft Dynamics AX

Comments

*This post is locked for comments