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

2 posts, 0 answers
  1. 지혜
    지혜 avatar
    5 posts
    Member since:
    Oct 2014

    Posted 01 Feb 2015 Link to this post

    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();
            }


  2. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 05 Feb 2015 Link to this post

    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.

     
  3. DevCraft banner
Back to Top