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

Changing Visibility

3 Answers 77 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ingemar
Top achievements
Rank 1
Ingemar asked on 01 Jul 2010, 09:40 PM
Hello,

I am trying to change the visibility of Paragraphs (i.e. the LayoutBox) but can´t get it to work and is obviously missing something elementary. A simple "Hello World" example with the ability to change visibility or opacity dynamically would be very much appreciated.
I am using Q2 beta.

Best regards,
//Ingemar
 

3 Answers, 1 is accepted

Sort by
0
Alex
Telerik team
answered on 05 Jul 2010, 07:40 AM
Hello Ingemar Johansson,

At the moment there is no way to change the visibility or opacity of the elements in the RadRichTextBox. However you can try changing the text ForeColor to achieve a similar effect. You can do this by selecting the whole paragraph using Document.CaretPosition and Document.DocumentSelection and then call RadEditor.ChangeTextForeColor method.

Best wishes,
Alex
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
Ingemar
Top achievements
Rank 1
answered on 05 Jul 2010, 10:32 AM
Hi Alex,

Thanks, good to know that it cant´t be done at the moment.
Do you have a time schedule for when this functionality is to be supported?

The problem with a ForeColor approach is that it gets unnecessary complex in the case of several spans with different colors intermixed with even more paragraphs and InlineImages/Hyperlinks.
If you then would like the Visability.Collapsed option you have to start adding/removing content dynamically as well
I will implement a small helping method for the moment, but I vote/suggest that the visability options is made available.

Lovely control by the way.

Best regards, 
Ingemar

0
Accepted
Alex
Telerik team
answered on 08 Jul 2010, 04:59 PM
Hi Ingemar Johansson,

We have added your request in our Public Issue Tracking System(PITS). You can track its progress here
Unfortunately we won't be able to squeeze this feature in the Q2 release.

Greetings,
Alex
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
Tags
RichTextBox
Asked by
Ingemar
Top achievements
Rank 1
Answers by
Alex
Telerik team
Ingemar
Top achievements
Rank 1
Share this question
or