Unplanned
Last Updated: 27 Mar 2022 10:03 by ADMIN
Andrea
Created on: 25 Mar 2022 16:27
Category: TileLayout
Type: Feature Request
1
Create footer for TileLayoutItem

In TelerikTileLayout the TileLayoutItem have the possibility to have have a HeaderText or even a HeaderTemplate, and behave as a TelerikCard, only without a footer.

Having the possibility to have a FooterTemplate would grant a better managment of the layout.

1 comment
ADMIN
Marin Bratanov
Posted on: 27 Mar 2022 10:03

Hi Andrea,

I think that's a good idea and I hope it makes it in the product.

At the moment, the only way could be to add something styled as desired to the <Content> of the tile, however.

Here is one example I made for you: https://blazorrepl.telerik.com/wckdQrbu02EoICS358

<style>
    .k-tilelayout-item-body {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .my-footer {
        margin-top: auto;
        height: 50px;
        min-height: 50px;
        background: lightgray;
        padding: 8px;
    }

    .main-tile-content {
        padding: 16px;
        overflow: auto;
    }
</style>

<TelerikTileLayout Columns="3"
                   ColumnWidth="200px"
                   RowHeight="150px"
                   Resizable="true"
                   Reorderable="true">
    <TileLayoutItems>
        <TileLayoutItem HeaderText="Panel 1">
            <Content>
                <div class="main-tile-content">
                    Regular sized first panel.
                </div>
                <div class="my-footer">this is a footer workaround</div>
            </Content>
        </TileLayoutItem>
        <TileLayoutItem HeaderText="Panel 2">
            <Content>
                <div class="main-tile-content">
                    You can put components in the tiles too. This is a very small tile that has no room for both content and footer so there is an overflow css rule for it.
                </div>
                <div class="my-footer">this is a footer workaround</div>
            </Content>
        </TileLayoutItem>
        <TileLayoutItem HeaderText="Panel 3" RowSpan="3">
            <Content>
                <div class="main-tile-content">
                    This tile is three rows tall.
                </div>
                <div class="my-footer">this is a footer workaround</div>
            </Content>
        </TileLayoutItem>
        <TileLayoutItem HeaderText="Panel 4" RowSpan="2" ColSpan="2">
            <Content>
                <div class="main-tile-content">
                    This tile is two rows tall and two columns wide.
                </div>
                <div class="my-footer">this is a footer workaround</div>
            </Content>
        </TileLayoutItem>
    </TileLayoutItems>
</TelerikTileLayout>

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.