This question is locked. New answers and comments are not allowed.
I have wired up my listbox with the "OnDemandManual" virtualization mode, along with a data virtualization item template like so.
As you can see, I would like to fire off a command when i click on the load more button. but the command doesn't even seem to be registering. is this possible via commanding, or do I need to call the command via my code-behind?
<
telerikPrimitives:RadDataBoundListBox
x:Name
=
"lbJobSearchResults"
telerikCore:InteractionEffectManager.IsInteractionEnabled
=
"True"
EmptyContent
=
" "
ItemsSource
=
"{Binding JobSearchResults}"
ItemTemplate
=
"{StaticResource SearchResultListTemplate}"
SelectedItem
=
"{Binding SelectedJobResult, Mode=TwoWay}"
DataVirtualizationMode
=
"OnDemandManual"
>
<
telerikPrimitives:RadDataBoundListBox.DataVirtualizationItemTemplate
>
<
DataTemplate
>
<
Button
Margin
=
"-12, 0, -12, 0"
Content
=
"load more"
HorizontalAlignment
=
"Stretch"
x:Name
=
"btnLoadMore"
Command
=
"{Binding LoadMoreJobsCommand, Mode=OneWay}"
/>
</
DataTemplate
>
</
telerikPrimitives:RadDataBoundListBox.DataVirtualizationItemTemplate
>
As you can see, I would like to fire off a command when i click on the load more button. but the command doesn't even seem to be registering. is this possible via commanding, or do I need to call the command via my code-behind?