This question is locked. New answers and comments are not allowed.
Hi,
I'm attaching sample code.
Could you give me a solution?
BR,
<telerik:RadDataBoundListBox
x:Name="RadListBox"
CacheMode="BitmapCache"
IsTabStop="False"
IsPullToRefreshEnabled="True"
ShowPullToRefreshWhenNoData="True"
DataVirtualizationMode="OnDemandAutomatic"
HorizontalContentAlignment="Stretch"
ItemsSource="{Binding Items}"
RefreshRequested="RadListBox_RefreshRequested"
>
<telerik:RadDataBoundListBox.EmptyContent>
<Grid
Width="480">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="no data" />
</Grid>
</telerik:RadDataBoundListBox.EmptyContent>
</telerik:RadDataBoundListBox>
private void RadListBox_RefreshRequested(object sender, EventArgs e)
{
new Thread(
(p)=>
{
Thread.Sleep(1000);
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
RadListBox.StopPullToRefreshLoading(false);
});
}
).Start();
}
I'm attaching sample code.
Could you give me a solution?
BR,
<telerik:RadDataBoundListBox
x:Name="RadListBox"
CacheMode="BitmapCache"
IsTabStop="False"
IsPullToRefreshEnabled="True"
ShowPullToRefreshWhenNoData="True"
DataVirtualizationMode="OnDemandAutomatic"
HorizontalContentAlignment="Stretch"
ItemsSource="{Binding Items}"
RefreshRequested="RadListBox_RefreshRequested"
>
<telerik:RadDataBoundListBox.EmptyContent>
<Grid
Width="480">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="no data" />
</Grid>
</telerik:RadDataBoundListBox.EmptyContent>
</telerik:RadDataBoundListBox>
private void RadListBox_RefreshRequested(object sender, EventArgs e)
{
new Thread(
(p)=>
{
Thread.Sleep(1000);
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
RadListBox.StopPullToRefreshLoading(false);
});
}
).Start();
}