A RenderFragment for a WindowFooter would be realy nice. The probem with the solution from Marin is that the footer will be located inside the Content. I want to have a footer where I place my buttons and that footer should allways be located at the bottom of the window. When the content of the window does not fit in the height i would like to be able to scroll the content and keep the footer at the bottom.
The solition from Marin works by placing the footer on top the content, the problem with soltion is that the scrollbar is going all way down to the botton of the window, not only for the content.
To be able to create a good footer it must be located OUTSIDE the content, just as the Windot Title (header).
So please add a render fragment for a footer that is located outside the content.
Hi Rob,
In the meantime, you could use something like this:
<TelerikWindow Visible="true" Width="400px" Height="300px;" Class="specialFooterWindow">
<WindowTitle>Lorem ipsum</WindowTitle>
<WindowContent>
<div class="contentWrapper">
<div class="WindowFooter">
The footer, its height matches the bottom padding of the content
</div>
<div class="WindowContent">
a lot of content
</div>
</div>
</WindowContent>
</TelerikWindow>
<style>
.specialFooterWindow .k-window-content {
overflow-y: hidden !important;
}
.contentWrapper {
position: absolute;
border: 1px solid red;
left: 0;
right: 0;
bottom: 0;
top: 0;
overflow: auto;
}
.WindowFooter {
position: fixed;
bottom: 0;
background: red;
height: 40px;
right: 16px; /*scrollbar*/
}
.WindowContent {
height: 2000px;
background: yellow;
padding-bottom: 40px;
}
</style>
Regards,
Marin Bratanov
Progress Telerik