Frame inside RadListView ItemTemplate cause Text not showing

2 posts, 0 answers
  1. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 14 Feb 2018 Link to this post

    I have a Label inside a Frame to make it has rounded borders. But nothing shows in listview item. No text or background color also not working. just white background items.

    Can not we use Frame inside ListViewTemplateCell.View ? how to achieve this behavior ?

    <telerikDataControls:RadListView.ItemTemplate>
                                    <DataTemplate>
                                        <telerikListView:ListViewTemplateCell>
                                            <telerikListView:ListViewTemplateCell.View>
     
     
                                            <Frame CornerRadius="5" Padding="0">
                                                <Label Text="text" Margin="0" BackgroundColor="Green" TextColor="White"/>
                                            </Frame>
                                              </telerikListView:ListViewTemplateCell.View>
                                        </telerikListView:ListViewTemplateCell>
                                    </DataTemplate>
                                </telerikDataControls:RadListView.ItemTemplate>
  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 16 Feb 2018 Link to this post

    Hi, Shalin,

    I have tested the behavior and it works fine for me. Please have a look at the attached sample and consider a similar approach.

    Have a great weekend.

    Regards,
    Stefan Nenchev
    Progress Telerik
    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
Back to Top