5 Answers, 1 is accepted
Hello Sanjay,
If the peek templates are that important you can consider putting the data you have for the peek template in a content template of a tile so it is the first thing shown by the tile: http://www.telerik.com/help/aspnet-ajax/tilelist-tiles-contenttemplatetile.html.
Otherwise, you can
- use the OnClientLoad event of the tile list (http://www.telerik.com/help/aspnet-ajax/tilelist-client-side-events-onclientload.html)
- traverse the tiles (http://www.telerik.com/help/aspnet-ajax/tilelist-client-side-tilelist-api.html - see the get_allTiles() method)
- show their peek templates via their API (http://www.telerik.com/help/aspnet-ajax/tilelist-client-side-tile-api.html - see the showPeekTemplate() method).
I hope this helps you choose the best course of action for your setup.
Regards,
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.
​<telerik:RadTileList ID="RadTileList1" runat="server" AppendDataBoundItems="false" Font-Bold="true"
Font-Size="X-Large" Width="100%" TileRows="4" OnTileDataBound="RadTileList1_OnTileDataBound"
OnTileCreated="RadTileList1_OnTileCreated" SelectionMode="Single" EnableDragAndDrop="false"
OnTileClick="RadTileList1_TileClick" AutoPostBack="true" ScrollingMode="None" >
<DataBindings>
<CommonTileBinding TileType="RadImageAndTextTile" Shape="Wide" DataNameField="MEMBER_CAPTION"/>
<ImageAndTextTileBinding DataTextField="MEMBER_CAPTION" />
<TilePeekTemplate>
<div id="dvTile" runat="server" style="background-color:transparent;font-size:small;" >
<h3 style="text-align:center;"><%#DataBinder.Eval(Container.DataItem, "MEMBER_CAPTION")%></h3>
<strong>Clicks:</strong>
<%#DataBinder.Eval(Container.DataItem, "Clicks")%>
<br />
<strong>Impressions:</strong>
<%#DataBinder.Eval(Container.DataItem, "Impressions")%>
<br />
<strong>Click Thru Rate:</strong>
<%#String.Format("{0:P2}.", DataBinder.Eval(Container.DataItem, "Click_Thru_Rate"))%>
<br />
<strong>Conversions:</strong>
<%#DataBinder.Eval(Container.DataItem, "Conversions")%>
</div>
</TilePeekTemplate>
</DataBindings>
</telerik:RadTileList>
Hi Sanjay,
The ContentTemplateTile I offered in my previous post lets you define the desired layout that will be shown in the initial load: http://www.telerik.com/help/aspnet-ajax/tilelist-tiles-contenttemplatetile.html.
You can see how to use data binding with it here: http://www.telerik.com/help/aspnet-ajax/tilelist-databinding-basics.html - see the last section in the article at the end.
If this is not what you need, you can use the JavaScript approach I offered in my previous post.
Regards,
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.
Thanks,
Sanjay.