Can I do conditional coloring with stimulsoft?

Stimulsoft Dashboards.WIN discussion
Post Reply
ynsemratk
Posts: 3
Joined: Mon Apr 19, 2021 12:45 pm

Can I do conditional coloring with stimulsoft?

Post by ynsemratk »

I have a column named "Adi" in my data source. This column is of string type. If the value in the previous "Name" column is the same as the next value, I want to make the style color of those columns red. How can I do? I sent my report to you. Thank you.
Attachments
KonsolideGenel.mrt
(17.28 KiB) Downloaded 246 times
Lech Kulikowski
Posts: 6163
Joined: Tue Mar 20, 2018 5:34 am

Re: Can I do conditional coloring with stimulsoft?

Post by Lech Kulikowski »

Hello,

Please send us a test data for your report and the necessary result, we will try to find a solution for you.

Thank you.
ynsemratk
Posts: 3
Joined: Mon Apr 19, 2021 12:45 pm

Re: Can I do conditional coloring with stimulsoft?

Post by ynsemratk »

When the "Adi" column is the same, let the color be the same as in the pdf file I sent.sorry i don't know english very much. I hope you understand.
Attachments
sample.pdf
(192.1 KiB) Downloaded 296 times
expdata.rar
(538 Bytes) Downloaded 259 times
ynsemratk
Posts: 3
Joined: Mon Apr 19, 2021 12:45 pm

Re: Can I do conditional coloring with stimulsoft?

Post by ynsemratk »

when the column that says "ÜRÜN ADI" in the report is the same.
Lech Kulikowski
Posts: 6163
Joined: Tue Mar 20, 2018 5:34 am

Re: Can I do conditional coloring with stimulsoft?

Post by Lech Kulikowski »

Hello,

You can use the following expression in the Condition:
(PreviousIsNull(new_table,"Adi") ? false : new_table.Adi == Previous(new_table,"Adi").ToString()) || (NextIsNull(new_table,"Adi") ? true : new_table.Adi == Next(new_table,"Adi").ToString())

Thank you.
Attachments
Screenshot 2021-04-23 235417.png
Screenshot 2021-04-23 235417.png (151.15 KiB) Viewed 10450 times
Post Reply