set listview row height to fit to content

2 posts, 1 answers
  1. Roshan
    Roshan avatar
    20 posts
    Member since:
    Apr 2012

    Posted 12 Sep Link to this post

    Is there a way to set radlistview row height to fit to the content. Here how I set the radListview. 

    <telerikDataControls:RadListView x:Name="listView" ItemsSource="{Binding Source={StaticResource Labels}, Path=Obj}">           
              <telerikDataControls:RadListView.ItemTemplate>
                  <DataTemplate>
                      <telerikListView:ListViewTemplateCell>
                          <telerikListView:ListViewTemplateCell.View>
                              <StackLayout>
                                  <template:AppointmentListItemTemplate/>
                              </StackLayout>
                          </telerikListView:ListViewTemplateCell.View>
                      </telerikListView:ListViewTemplateCell>
                  </DataTemplate>
              </telerikDataControls:RadListView.ItemTemplate>
     </telerikDataControls:RadListView>
  2. Answer
    Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    419 posts

    Posted 13 Sep Link to this post

    Hello Roshan,

    Try setting the ItemLength of the ListViewLinearLayout:

    <telerikDataControls:RadListView>
        <telerikDataControls:RadListView.LayoutDefinition>
            <telerikListView:ListViewLinearLayout ItemLength="70" />
        </telerikDataControls:RadListView.LayoutDefinition>
    </telerikDataControls:RadListView>


    If you still have trouble with this, open a support ticket here and attach your code so that we can reproduce and investigate further.

    Regards,
    Lance | Tech Support Engineer, Sr.
    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