2 posts, 0 answers
  1. Billy
    Billy avatar
    1 posts
    Member since:
    Mar 2013

    Posted 28 Feb 2013 Link to this post

    This is in regards to a Windows Phone 7.1

    I'm having a problem with the RadDataBoundListBox and PullToRefresh.  I'm displaying a BusyIndicator in front of the listbox when the listbox's ItemsSource is null.  When the ItemsSource is loaded the listbox should be displayed.  The listbox is set to wrap horizontally via the VirtualizationStrategyDefinition.  Everything works fine except that when the ItemsSource is loaded and the listbox is displayed, you can see part of the pull to refresh text behind the first items in the list.  It's like this text is rendered to low, it shouldn't be visible at all, and when it is visible it should be above the first items in the listbox, not partly below the first items in the list box.

    I've attached some code that demonstrates what I'm talking about.  When you launch the app you will see the loading indicator.  Click app bar button to load the items source.  Notice the pull to refresh text is partially visible behind the first items in the list.

    Interestingly, this only happens when you have the "WrapLineAlignment" set to "Center" in the "WrapVirtualizationStrategyDefinition" property.  If you take this off, it displays correctly.  Please let me know if I'm just doing something wrong, or if this is a bug (and if so is there a workaround).


        mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
        FontFamily="{StaticResource PhoneFontFamilyNormal}"
        FontSize="{StaticResource PhoneFontSizeNormal}"
        Foreground="{StaticResource PhoneForegroundBrush}"
        SupportedOrientations="Portrait"  Orientation="Portrait"
        shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded_1"   >
        <Grid x:Name="LayoutRoot" Background="Transparent">
                <DataTemplate x:Key="DataBoundListBoxItemTemplate">
                        Title="{Binding Name}"
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            <StackPanel Grid.Row="0" Margin="12,17,0,0">
                <TextBlock Text="Text1" Style="{StaticResource PhoneTextTitle3Style}"></TextBlock>
                <TextBlock Text="Text2" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle2Style}" />
            <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,12,12,12">
                    ItemsSource="{Binding Path=Model, Mode=TwoWay}"
                    ItemTemplate="{StaticResource DataBoundListBoxItemTemplate}">
                        <telerikPrimitives:WrapVirtualizationStrategyDefinition Orientation="Horizontal" WrapLineAlignment="Center" />
            <telerikPrimitives:RadBusyIndicator Grid.Row="1" AnimationStyle="AnimationStyle9" Foreground="#FF9AC048">
                    <Binding ElementName="listBox" Path="ItemsSource">
            <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
                <shell:ApplicationBarIconButton Click="ApplicationBarIconButton_Click_1" IconUri="/Images/appbar_button1.png" Text="Show Model"/>

    Code Behind.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using Microsoft.Phone.Controls;
    using System.ComponentModel;
    namespace RadControlsWindowsPhoneApp1
        public partial class MainPage : PhoneApplicationPage, INotifyPropertyChanged
            // Constructor
            public MainPage()
            private void PhoneApplicationPage_Loaded_1(object sender, RoutedEventArgs e)
                this.DataContext = this;
            public List<NameC> Model { get; set; }
            private void ApplicationBarIconButton_Click_1(object sender, EventArgs e)
                List<NameC> names = new List<NameC>();
                names.Add(new NameC { Name = "Name 1" });
                names.Add(new NameC { Name = "Name 2" });
                names.Add(new NameC { Name = "Name 3" });
                names.Add(new NameC { Name = "Name 4" });
                names.Add(new NameC { Name = "Name 5" });
                names.Add(new NameC { Name = "Name 6" });
                names.Add(new NameC { Name = "Name 7" });
                names.Add(new NameC { Name = "Name 8" });
                this.Model = names;
            public class NameC
                public string Name { get; set; }
            private void NotifyPropertyChanged(String propertyName = "")
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            public event PropertyChangedEventHandler PropertyChanged;

    NullToTrueConverter reference in XAML

    using System;
    using System.Globalization;
    using System.Windows.Data;
    namespace Converters
        public class NullToTrueConverter : IValueConverter
            #region IValueConverter Members
            public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
                if (value == null)
                    return true;
                    return false;
            public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
                throw new InvalidOperationException();




  2. Deyan
    Deyan avatar
    2026 posts

    Posted 04 Mar 2013 Link to this post

    Hello Billy,

    Thanks for writing and for reporting this issue.

    I would like to inform you that we have been able to reproduce this issue on our side and will issue a fix for it in our next Internal Build which is scheduled for the end of this week.

    I have added 1500 Telerik points to your account for your cooperation.

    Let us know should you have further questions.

    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top