Changing table border color.

4 posts, 1 answers
  1. Fedor Uba
    Fedor Uba avatar
    7 posts
    Member since:
    Oct 2009

    Posted 08 Nov 2010 Link to this post

    How can I change the borders color in table?
    Thanks.
  2. Answer
    Boby
    Admin
    Boby avatar
    595 posts

    Posted 11 Nov 2010 Link to this post

    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
  3. DevCraft banner
  4. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 08 Jan 2012 Link to this post

    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
  5. Mihail
    Admin
    Mihail avatar
    192 posts

    Posted 10 Jan 2012 Link to this post

    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 >>

Back to Top