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

Conditionally change border on textbox

6 Answers 227 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alquin Cook
Top achievements
Rank 1
Alquin Cook asked on 13 Sep 2010, 10:10 PM
Hello,

I am using Telerik Reporting Q1 2010 for WinForms and I'm trying to set up conditional formatting using the style builder dialog. I need to have the top border on a textbox display if a certain conditions exists. I do NOT need to have the whole textbox default border displayed. 

I go into the style builder dialog and select 'Top' in the "select border" and click "ok". When I go back in to style builder the select border has changed back to default. I tried just display the report but the whole cell has edges and I only need to have the top border.

Any suggestions?

Thanks

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 15 Sep 2010, 01:06 PM
Hi Alquin Cook,

The Style Builder default behavior is only to set the borders and not to remember the dropdown last selection. For example you can set a left border and a top border to a different or the same style and style builder will set the appropriate style and show them in the preview. Once you return you can view your changes to the style in the Preview.

For more information related to the styles check out Styling Reports help articles.

All the best,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Alquin Cook
Top achievements
Rank 1
answered on 15 Sep 2010, 01:11 PM
Hi Peter,

I think you misunderstood my original post. I used the Style Builder to set the top border only, but all the borders (top, bottom, left right) are being set. It doesn't matter which border I set the textbox always highlights all the borders. How do I only highlight just the top border?

Also, is there a way to dynamically manipulate the borders (top, bottom, left, right) of a textbox on/off?
0
Peter
Telerik team
answered on 16 Sep 2010, 05:14 PM
Hi Alquin Cook,

You are the first one to report such behavior and we are unable to reproduce it with the provided information - check the attached video. To further investigate we will appreciate if you prepare a sample report that exhibit's the issue and/or a video that show the behavior you have experienced through the support system.

Greetings,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Chandana
Top achievements
Rank 1
answered on 25 Feb 2019, 10:10 AM
I need to hide a textbox border for one case. top,right,bottom borders all alreadt sey. I need to cretae a border based on condition.I s this possible?
0
Anderson
Top achievements
Rank 1
answered on 17 Apr 2020, 07:10 AM
I have the same issue
0
Todor
Telerik team
answered on 21 Apr 2020, 11:41 AM

Hello,

You may use Conditional Formatting or Bindings.

I have attached a sample report to demonstrate both approaches. The top border style is set with Conditional Formatting, the bottom border style with Bindings.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Alquin Cook
Top achievements
Rank 1
Answers by
Peter
Telerik team
Alquin Cook
Top achievements
Rank 1
Chandana
Top achievements
Rank 1
Anderson
Top achievements
Rank 1
Todor
Telerik team
Share this question
or