Set title text of existing tile

3 posts, 1 answers
  1. Cayetano Landeros
    Cayetano Landeros avatar
    17 posts
    Member since:
    Feb 2006

    Posted 11 Sep 2013 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Sep 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cayetano Landeros
    Cayetano Landeros avatar
    17 posts
    Member since:
    Feb 2006

    Posted 13 Sep 2013 Link to this post

    Thank you!!!!!
Back to Top