ListView not showing up

2 posts, 0 answers
  1. Luc
    Luc avatar
    3 posts
    Member since:
    Feb 2017

    Posted 16 Feb Link to this post

    HI,

    I just implement a Telerik List View, followed all the steps on 
    http://docs.telerik.com/devtools/xamarin/controls/listview/getting-started/listview-getting-started

    all compiles no problems, however the list view didn't show up.

     

    My code is exactly copied for the code sample on your instruction page.  except I removed BindingContext bit from the xaml , because I use MVVM which automatically bind the view model to xaml.

    <telerikDataControls:RadListView ItemsSource="{Binding Source}">
            <!--<telerikDataControls:RadListView.BindingContext>
              <local:PlanEditorPageModel />
            </telerikDataControls:RadListView.BindingContext>-->
            <telerikDataControls:RadListView.ItemTemplate>
              <DataTemplate>
                <telerikListView:ListViewTemplateCell>
                  <telerikListView:ListViewTemplateCell.View>
                    <Grid>
                      <Label Margin="10" Text="{Binding Name}" />
                    </Grid>
                  </telerikListView:ListViewTemplateCell.View>
                </telerikListView:ListViewTemplateCell>
              </DataTemplate>
            </telerikDataControls:RadListView.ItemTemplate>
          </telerikDataControls:RadListView>

     

    I also tried the Chart control, which didn't show up as well? What am I missing? 

     

  2. Luc
    Luc avatar
    3 posts
    Member since:
    Feb 2017

    Posted 16 Feb Link to this post

    working now!

    I actually need to put this line outside of the namespace!

     

    [assembly: ExportRenderer(typeof(Telerik.XamarinForms.DataControls.RadListView), typeof(Telerik.XamarinForms.DataControlsRenderer.Android.ListViewRenderer))]

Back to Top