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

Tile List OnTileClick not Triggering

2 Answers 80 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 24 Jun 2014, 07:36 PM
<telerik:RadTileList ID="ClientList" runat="server" AutoPostBack="True" 
             OnTileClick="ClientList_TileClick"
             SelectionMode="None" 
             TileRows="3">
            <Groups>
                 <telerik:TileGroup Name="ClientsTileGroup" ></telerik:TileGroup>
            </Groups>
    </telerik:RadTileList>

Sorry to post again but I am getting an error that I have no clue how to figure out. Here, I set OnTileClick="ClientList_TileClick" however when I click on the tile that method is never called. What it does do is refresh the page, which is really weird. The method "ClientList_TileClick" is supposed to redirect to another page. The tile group is empty but it's filled in C# code so the tiles actually exist. In Debug mode I see that the method doesn't get called. Why is that?

2 Answers, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 1
answered on 24 Jun 2014, 07:58 PM
protected void ClientList_TileClick(object sender, TileListEventArgs e)

Am I using the wrong Event here? 
0
Shinu
Top achievements
Rank 2
answered on 25 Jun 2014, 05:11 AM
Hi Jason,

Please have a look into the sample code snippet to achieve your scenario.

ASPX:
<telerik:RadTileList ID="ClientList" runat="server" AutoPostBack="True" SelectionMode="None"
    TileRows="3" OnTileClick="ClientList_TileClick">
    <Groups>
        <telerik:TileGroup Name="ClientsTileGroup">
        </telerik:TileGroup>
    </Groups>
</telerik:RadTileList>

C#:
protected void Page_Init(object sender, EventArgs e)
{
    RadTextTile txtTile = new RadTextTile();
    txtTile.Text = "TextTile1";
    ClientList.GetTileGroupByName("ClientsTileGroup").Tiles.Add(txtTile);
}
protected void ClientList_TileClick(object sender, TileListEventArgs e)
{
    //your code
    Response.Redirect("addandRemovenode.aspx");
}

Let me know if you have any concern.
Thanks,
Shinu.
Tags
TileList
Asked by
Jason
Top achievements
Rank 1
Answers by
Jason
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or