Changing All RadPanorama Tile BackColors at Once

4 posts, 2 answers
  1. Derek
    Derek avatar
    6 posts
    Member since:
    Jun 2013

    Posted 15 Jul 2013 Link to this post

    I was wondering if there is a way to change all RadPanorama tile Backcolors at once instead of going through each tile individually.
  2. Answer
    Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 16 Jul 2013 Link to this post

    Hi Derek,

    Thank you for writing.

    You can do that by iterating the tiles in the control and setting their BackColor. Here is how to do that:
    //grouped
    foreach (TileGroupElement group in radPanorama1.Groups)
    {
        foreach (RadTileElement tile in group.Items)
        {
            tile.BackColor = Color.Red;
        }
    }
    //ungrouped
    foreach (RadTileElement tile in radPanorama1.Items)
    {
        tile.BackColor = Color.Red;
    }

    I hope this helps.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Shahiran
    Shahiran avatar
    6 posts
    Member since:
    Oct 2014

    Posted 14 Oct 2014 in reply to Stefan Link to this post

    Hi, I cant use this statement. Any solution?
  5. Answer
    Shahiran
    Shahiran avatar
    6 posts
    Member since:
    Oct 2014

    Posted 14 Oct 2014 Link to this post

    found the way, forgot to import ^^'

    using Telerik.WinControls.UI;
Back to Top