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

Changing All RadPanorama Tile BackColors at Once

3 Answers 89 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 15 Jul 2013, 10:01 PM
I was wondering if there is a way to change all RadPanorama tile Backcolors at once instead of going through each tile individually.

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 16 Jul 2013, 01:04 PM
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 >>
0
Shahiran
Top achievements
Rank 1
answered on 14 Oct 2014, 04:43 PM
Hi, I cant use this statement. Any solution?
0
Accepted
Shahiran
Top achievements
Rank 1
answered on 15 Oct 2014, 12:26 AM
found the way, forgot to import ^^'

using Telerik.WinControls.UI;
Tags
Panorama
Asked by
Derek
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Shahiran
Top achievements
Rank 1
Share this question
or