Is it possible to put links in tiles?

4 posts, 0 answers
  1. Nedim
    Nedim avatar
    11 posts
    Member since:
    Mar 2012

    Posted 29 Oct 2014 Link to this post

    We're able to redirect users to a link when they click tiles by using NavigateUrl. My question is that is it possible to add multiple links inside a tile?

    For example, users will go to a.aspx when they click anywhere in tile. There will be also "Click for B" and "Click for C" links in tile. Users will be redirected to b.aspx or c.aspx from these links.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 31 Oct 2014 Link to this post

    Hi Nedim,

    You can use a ContentTemplate tile and add the desired HTML inside: http://www.telerik.com/help/aspnet-ajax/tilelist-tiles-contenttemplatetile.html. For example:

    <telerik:RadContentTemplateTile runat="server" ID="RadContentTemplateTile1" NavigateUrl="some-page.aspx">
        <ContentTemplate>
            <a href="A">Page A</a>
            <br />
            <a href="B">B</a>
        </ContentTemplate>
    </telerik:RadContentTemplateTile>



    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nedim
    Nedim avatar
    11 posts
    Member since:
    Mar 2012

    Posted 03 Nov 2014 in reply to Marin Bratanov Link to this post

    Thanks Marin, this was what I had been looking for.

    A question about this control: Is there any easy way to assign a background image? There is no ImageUrl property for this control (except the one for title). Should we set the image with HTML/CSS?
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 04 Nov 2014 Link to this post

    Hello Nedim,

    The ContentTemplate tile lets the developer define the entire content of the tile and this would include images, should you want them. You can add them as <img> tags, as background-image CSS rules for elements in your content, or override the built-in CSS of the control, depending on what you would need.


    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.

     
Back to Top