Skip to main content

Notifications

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,447

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?

  • Retha Profile Picture
    1,447 on at
    RE: How to change the styles on a dataList

    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.

  • huijij Profile Picture
    19,811 on at
    RE: How to change the styles on a dataList

    Hi Retha,

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

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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans