This is a migrated thread and some comments may be shown as answers.

Conditionally remove Table TextBox Border

3 Answers 462 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
james
Top achievements
Rank 1
james asked on 13 Nov 2015, 06:58 PM

Hi,

 I am trying to create a report with a table layout and would like to remove all bottom borders except when the next row contains a specified value. Kind of like grouping the data  in section without the bottom border. How can this be done?

 

James 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 17 Nov 2015, 03:34 PM
Hello James,

To apply horizontal lines conditionally, you can set the top/bottom border of the current report item via Conditional Formatting.
Since the next row values cannot be accessed from the previous row expressions you will need to use the Top border of the items conditionally. In other words, instead of setting the current item Bottom border depending on the next data row value, set the current item Top border depending on the current data row value.
Another approach is to retrieve the next row value in the current row using an SQL query.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
james
Top achievements
Rank 1
answered on 17 Nov 2015, 05:10 PM

Nasko,

 

How do I remove or set the horizontal line using the Conditional Formatting? I set the expression to Fields.Column and then set the operator to = and the Value to the text that triggers the formatting.  Now how do I remove the horizontal line? Do I use the Style Builder? In the Style Builder --> Line Style I see Solid, Dotted, Dashed. Do I just set the width to 0 pt? This is not working for me.

 

James 

 

0
Nasko
Telerik team
answered on 18 Nov 2015, 04:48 PM
Hello James,

In the Style Builder > Edges > Borders select the desired border and then in the Default pane set the Style to Solid. Click OK to save these changes and then open the Style Builder again. This time set the Style to None which will remove the border when the conditional rule expression evaluates to True. 

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
james
Top achievements
Rank 1
Answers by
Nasko
Telerik team
james
Top achievements
Rank 1
Share this question
or