How to change RadListView PullToRefresh Activity Indicator cell background color?

2 posts, 0 answers
  1. Alius
    Alius avatar
    4 posts
    Member since:
    Jul 2012

    Posted 11 Jul Link to this post

    Maybe someone already faced this issue: My app background is white, RadListView Item Background is also White, but when I'm trying to do PullToRefresh black cell pops out with white Activity Indicator inside. Preview here: http://tinypic.com/r/5pkcgw/9

    Any hint how to make it White instead of Black?

    <telerik:RadListView x:Name="SocialFeed" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
            SelectionMode="Single" IsPullToRefreshEnabled="True" BackgroundColor="Red">
        <telerik:RadListView.LayoutDefinition>
            <listView:ListViewLinearLayout Orientation="Vertical" VerticalItemSpacing="0" />
        </telerik:RadListView.LayoutDefinition>
        <telerik:RadListView.ItemStyle>
            <listView:ListViewItemStyle BackgroundColor="White" BorderWidth="1" BorderColor="#C8C7CC" BorderLocation="Bottom" />
        </telerik:RadListView.ItemStyle>   
        <telerik:RadListView.PressedItemStyle>
                <listView:ListViewItemStyle BackgroundColor="White" BorderWidth="1" BorderColor="#C8C7CC" BorderLocation="Bottom" />
        </telerik:RadListView.PressedItemStyle>
        <telerik:RadListView.SelectedItemStyle>
                <listView:ListViewItemStyle BackgroundColor="White" BorderWidth="1" BorderColor="#C8C7CC" BorderLocation="Bottom" />
        </telerik:RadListView.SelectedItemStyle>
        <telerik:RadListView.ItemTemplate>
            <DataTemplate>
            ...
            </DataTemplate>
        </telerik:RadListView.ItemTemplate>                                
    </telerik:RadListView>

  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 15 Jul Link to this post

    Hello Alius,

    Thank you for contacting us.

    The list view does not expose API to change the background if the refresh indicator, but you can easily change it with a custom list view renderer. I have attached a sample that demonstrates this. Please, take a look at the CustomListViewRenderer class in the AppDelegate.cs file in the iOS project.

    I hope this helps.

    Regards,
    Rosy Topchiyska
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top