Create GroupTile programmatically

2 posts, 0 answers
  1. rugydp
    rugydp avatar
    15 posts
    Member since:
    Jul 2014

    Posted 18 Sep 2015 Link to this post

     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>

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 18 Sep 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top