This is a migrated thread and some comments may be shown as answers.

PullToRefresh Indicator does not go to invisible on WP7 eventhough StopPullToRefreshLoading be called.

1 Answer 8 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
지혜
Top achievements
Rank 1
지혜 asked on 02 Feb 2015, 02:41 AM
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();
        }


1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 05 Feb 2015, 08:41 AM
Hi,

Would it be possible to elaborate a little bit more on the behavior you are experiencing. I have built application based on the code snippet, but we cannot reproduce the described behavior. Are there specific steps or specific device involved?

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataBoundListBox
Asked by
지혜
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or