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

How to change the default Hover border color for specific tile

2 Answers 149 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Todd A
Top achievements
Rank 1
Todd A asked on 02 Dec 2014, 09:54 PM
How to change the default Hover border color for specific tile?

In this example, let's say we wanted the red tile to have a red border.


Is there a simple way to do this with the control?

Setting the BorderColor property on the tile shows the border always with no hover effect.

Thanks,
Todd.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 03 Dec 2014, 12:37 PM

Hello Todd,

The border on the selected tiles comes via CSS rules and a class, and you can override it like that:

div.RadTile.rtileSelected,
div.RadTile.rtileSelected.rtileHovered
{
    border-color: red;
}

which would affect all tiles on the page. You can then make this more specific in a number of ways, for example, by using the CssClass property of the tile, or a skin-specific selector.

Here is a concrete example:

div.RadTile.rtileSelected.redSelection,
div.RadTile.rtileSelected.rtileHovered.redSelection
{
    border-color: red;
}

<telerik:RadTextTile runat="server" ID="one" Text="lorem" EnableSelection="true" Selected="true"></telerik:RadTextTile>
<telerik:RadTextTile runat="server" ID="two" Text="ipsum" EnableSelection="true" Selected="true" CssClass="redSelection"></telerik:RadTextTile>


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Todd A
Top achievements
Rank 1
answered on 04 Dec 2014, 11:03 PM
Great.  I will give it a try!
Tags
TileList
Asked by
Todd A
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Todd A
Top achievements
Rank 1
Share this question
or