Page 1 of 1

Condition for Horizontal alignment affects regular rows

Posted: Thu Aug 22, 2019 2:22 pm
by IskandarAir
Dear Stimulsoft team,

We are now giving the option to user to set condition and font-change for each column (i.e. when salary is less 125, highlight it). We found that when user wants different alignment for condition/style, it affect regular row.
For Example, all rows less than 125 must be on right, and rest left. But within condition value or without, condition affect all rows.

Sample is attached, please review


P.S. Please change the connection string to your machine one
P.P.S. Please ignore the 3rd text field. I took from previous sample .mrt file

Regards,
Iskandar A

Re: Condition for Horizontal alignment affects regular rows

Posted: Mon Aug 26, 2019 1:06 pm
by Lech Kulikowski
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.

Re: Condition for Horizontal alignment affects regular rows

Posted: Tue Aug 27, 2019 4:06 am
by IskandarAir
Hi,

Given: REGULAR (Salary Alignment - RIGHT)
--------------------------
James___________||___________105
Smith ___________||___________ 90
--------------------------

User wants to change alignment of employee whose salary is more than 100. So he gives StiCondition WITH alignment LEFT. Condition => (Data.Salary > 100, Style = StiTextHorAlignment.Left)
EXPECTED:
--------------------------
James ___________|| 105 _________
Smith ___________||___________90
--------------------------
REALITY: - Both regular and UNDER-Condition rows are changed, whereas only 105 should be LEFT-Alignment
--------------------------
James___________|| 105 ___________
Smith ___________|| 90____________
--------------------------

QUESTION. Why alignment under condition effects regular rows? PLEASE note if condition in one row is true then all proceeding rows will have the same HorAlignment

Regards,
Iskandar A

Re: Condition for Horizontal alignment affects regular rows

Posted: Tue Aug 27, 2019 9:49 pm
by Lech Kulikowski
Hello,

Ok. What is wrong with your report?

Thank you.

Re: Condition for Horizontal alignment affects regular rows

Posted: Wed Aug 28, 2019 12:44 pm
by IskandarAir
Hi,

Here is my result.

which version of stimulsoft are you using?

Mine version is - "ReportVersion": "2017.1.6.0",

Re: Condition for Horizontal alignment affects regular rows

Posted: Wed Aug 28, 2019 1:50 pm
by Lech Kulikowski
Hello,

Please try to check the last release version.

Thank you.

Re: Condition for Horizontal alignment affects regular rows

Posted: Thu Aug 29, 2019 4:37 am
by IskandarAir
Hi,

What about my version?

The upgrade will be painfull for current situation.

Regards

Re: Condition for Horizontal alignment affects regular rows

Posted: Thu Aug 29, 2019 10:26 am
by Lech Kulikowski
Hello,

Unfortunately, we couldn't fix that issue in the old version. Sorry.

Thank you.