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

Create GroupTile programmatically

1 Answer 97 Views
TileList
This is a migrated thread and some comments may be shown as answers.
rugydp
Top achievements
Rank 1
rugydp asked on 18 Sep 2015, 09:45 AM

 Hello

 I have a TileList created from a datasource with a group field that groups tiles by day. Now I want to add a GroupTile Header with a ContentTemplate  programmatically. 

At the moment it is static in the .ascx file (see below). But I need something like this created in code behind and added to the TileListGroup.

I know I can add a group with .Groups.Add(group) but I just don't get how to create and add an RadContentTemplateTile as a header to it.

How can I get there... 

 <telerik:TileGroup Name="2015-09-18">
          <telerik:RadContentTemplateTile runat="server" Shape="Wide" CssClass="noHover OEGroupTile">
                    <ContentTemplate>
                                <div class="OEGroupTileContent">

                                   <div class="OETileTopContent">​Friday, 18.09.2015 (Today)</div>

                                    <div class="OETileBottomLeftSmall">​some text</div>
                                </div>
                       </ContentTemplate>
              </telerik:RadContentTemplateTile>
</telerik:TileGroup>

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 18 Sep 2015, 01:35 PM

Hi,

The following article shows how you can create groups and add tiles to them programmatically: http://docs.telerik.com/devtools/aspnet-ajax/controls/tilelist/server-side-programming/programmatic-creation.

Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TileList
Asked by
rugydp
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or