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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

How to change the styles on a dataList

(0) ShareShare
ReportReport
Posted on by 1,457

I have a new view that I created. It uses the dataList and IdataListState with columns.

Standard seems to have a ".dataList" style for it.

Doesn't matter what style I add to my DIV-tag, I can only seem to change the color. 

However I need to change the font and I need to change the color on the 2nd line it displays. I have 3 grids next to each other, so the product details display on a 2nd line. Somewhere in some standard style the 2nd line is assigned a light grey color. I need it to be the same color as the main line.

Also, I actually need to make the main line and the 2nd line have the color it gets when one hover with the mouse over it. So it needs to have this color permanently. 

So I can I do that without messing with the standard .DataList style which anyways isn't controlling the product details line and it messes up the rest of POS everywhere it is used even if I add it only to my own stylesheet program which scope-wise I would have assumed does the change only for the duration of my view, but it doesn't.

NewView.PNG

I can't take a snapshot of the line when I hove rover it, but both the sales order line with its product details turns a white for the font color and the background color for that line turns a darker blue.

I need to have it that color permanently. And only for the lines. If I change the color on my DIV-tag to white, I don't see any column labels because the standard code makes the line that contains the column headers white so I need to change it on the dataList level it seems.

Even if I can just make the font bigger and bold both the sales order line with its product details, then it will also help.

Does anybody has any suggestions please?

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi Retha,

    You need to do some customization to extend a theme from a base theme:

    docs.microsoft.com/.../extend-theme

  • Retha Profile Picture
    1,457 on at

    Judy, you are talking about Commerce-Online and I'm taking about Commerce-Retail. The 2 has different SDKs, they are 2 different systems. The only thing they share is the data and the RetailServer and CRT code. But the front end that is presented to the end-user are different.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 284 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 178 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans