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

Changing table border color.

3 Answers 155 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Fedor Uba
Top achievements
Rank 1
Fedor Uba asked on 08 Nov 2010, 01:09 PM
How can I change the borders color in table?
Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 11 Nov 2010, 08:55 AM
Hi Fedor Uba,

Yesterday was the official release of Q3 2010 version of Telerik controls for Silverlight. Assuming you are using it, you can change the table border like this (where Red is the example color):
foreach (TableRow row in table.Rows)
{
    foreach (TableCell cell in row.Cells)
    {
        cell.Borders.All = new Border(cell.Borders.All.Style, Colors.Red);
    }
}
Notice that for now there is no way to set border color of the whole table at once - we are aware of this limitation and will be implementing such API soon.

Don't hesitate to get back here if you have other questions.


All the best,
Boby
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
Dave Navarro
Top achievements
Rank 2
answered on 09 Jan 2012, 03:15 AM
Hello,

Original question;
I have some tables that I'd like to set with 'no border' or set the border to 'white' so that they don't show. I'd also like to set some cells to have no border and then others to have a color of light gray.

My update;
I found a forum post that instructs us to use a right mouse button click / context menu to bring up a "Table Borders" menu option. This menu option has just what I need.

My frustration at this point comes from the menus not being consistent. Why is this menu option not shown in the main tab for tables? If it was there along with all the other table tools I would have found it right away.

Perhaps this can come in a future update?

Many thanks in advance!

~ Dave
0
Mihail
Telerik team
answered on 10 Jan 2012, 12:49 PM
Hello Dave,

 
We currently do not plan to implement this feature. However, if you need it, you can create your own button in the Table tab and bind it to "ShowTableBordersDialogCommand" located in Commands in RadRichTextBox.
If you have any other questions please do not hesitate to contact us.

Greetings,
Mihail
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Fedor Uba
Top achievements
Rank 1
Answers by
Boby
Telerik team
Dave Navarro
Top achievements
Rank 2
Mihail
Telerik team
Share this question
or