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

Set title text of existing tile

2 Answers 26 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Cayetano Landeros
Top achievements
Rank 1
Cayetano Landeros asked on 11 Sep 2013, 04:08 PM

i have a radtilelist with the id of "RadTileList2".  the name of the tile is "Home" and i would like to set the title text server side.
i believe i have to find the tile first like so? 


RadTextTile tile = RadTileList2.GetTileByName("Home");
        tile.Text = "tree";

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 13 Sep 2013, 08:46 AM
Hi Cayetano Landeros,

Please try the following code snippet that I have tried to set the text of RadTextTile in code behind.

ASPX:
<telerik:RadTileList ID="RadTileList2" runat="server" OnLoad="RadTileList1_Load">
    <Groups>
        <telerik:TileGroup>
            <telerik:RadTextTile Name="Home">
            </telerik:RadTextTile>
        </telerik:TileGroup>
    </Groups>
</telerik:RadTileList>

C#:
protected void RadTileList2_Load(object sender, EventArgs e)
{
    RadTextTile tile1 = RadTileList2.GetTileByName("Home") as RadTextTile;
    tile1.Text = "Temp";
}

Thanks,
Shinu.
0
Cayetano Landeros
Top achievements
Rank 1
answered on 13 Sep 2013, 12:17 PM
Thank you!!!!!
Tags
TileList
Asked by
Cayetano Landeros
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Cayetano Landeros
Top achievements
Rank 1
Share this question
or