ListView not showing up

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

    Posted 16 Feb 2017 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 2017 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))]

  3. san
    san avatar
    2 posts
    Member since:
    Aug 2012

    Posted 10 Jan 2018 in reply to Luc Link to this post

    can you tell me where to put that ExportRenderer. As i am also not able to see list view. Also i used trial version, so does it affect anything?

     

    Thanks.

  4. Lance | Manager Technical Support
    Admin
    Lance | Manager Technical Support avatar
    1186 posts

    Posted 10 Jan 2018 Link to this post

    Hi San,

    You no longer need to declare the renderers, or call TelerikForms.Init(), after version 2017.1 . We now do this internally to make this easier for you (please see this doc article for more info).

    Since you haven't shared your code, I can't tell exactly what's wrong, but a very common cause for not seeing the radListView is that you put it inside a StackLayout. Instead put the RadListView inside a Grid.

    If you need RowDefinitions, than make sure the RadListView is inside a RowDefinition that has a height of star.

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
     
        <OtherContent Grid.Row="0" />
     
        <RadListView Grid.Row="1"/>
    </Grid>

    If you're still having trouble, please open a support ticket here and share your code so that we can investigate directly.

    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