This question is locked. New answers and comments are not allowed.
We are trying to bind to the ListFooterTemplate but it doesn't appear to be working, is this supported?
Essentially we need to dynamically display a LoadMore button in the footer depending on whether the number of items in the list may allow a new page (e.g. if pages are 10 items long and there is 34 items in the list then load more would be hidden, if it was 30, it would be shown).
<telerikPrimitives:RadDataBoundListBox.ListFooterTemplate>
<DataTemplate>
<Grid>
<Button Content="load more" HorizontalAlignment="Stretch"
Visibility="{Binding IsPagingAllowed, Converter={StaticResource VisibilityTrueConverter}}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<cm:ActionMessage MethodName="NextPageNews" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</Grid>
</DataTemplate>
</telerikPrimitives:RadDataBoundListBox.ListFooterTemplate>
Essentially we need to dynamically display a LoadMore button in the footer depending on whether the number of items in the list may allow a new page (e.g. if pages are 10 items long and there is 34 items in the list then load more would be hidden, if it was 30, it would be shown).
<telerikPrimitives:RadDataBoundListBox.ListFooterTemplate>
<DataTemplate>
<Grid>
<Button Content="load more" HorizontalAlignment="Stretch"
Visibility="{Binding IsPagingAllowed, Converter={StaticResource VisibilityTrueConverter}}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<cm:ActionMessage MethodName="NextPageNews" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</Grid>
</DataTemplate>
</telerikPrimitives:RadDataBoundListBox.ListFooterTemplate>