Tile List OnTileClick not Triggering

3 posts, 0 answers
  1. Jason
    Jason avatar
    20 posts
    Member since:
    Jun 2014

    Posted 24 Jun 2014 Link to this post

    <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. Jason
    Jason avatar
    20 posts
    Member since:
    Jun 2014

    Posted 24 Jun 2014 in reply to Jason Link to this post

    protected void ClientList_TileClick(object sender, TileListEventArgs e)

    Am I using the wrong Event here? 
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Jun 2014 in reply to Jason Link to this post

    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.
Back to Top