简体   繁体   中英

Create a RadDataGrid in Xamarin form using Telerik

Hi I'm a newbie in Xamarin Forms. I googled a lot before asking this question but couldn't able to find suitable answer.

I'm trying to create a piechart in Xamarin Forms for that I installed the Telerik UI for xamarin using Nuget.

CODE:

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="DemoApp.DashboardPage" xmlns:telerikChart="clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.XamarinForms.Chart">
<ContentPage.Content>
    <telerikChart:RadPieChart>
          <telerikChart:RadPieChart.Series>
            <telerikChart:PieSeries ItemsSource="{Binding Data}" ShowLabels="true">
                  <telerikChart:PieSeries.ValueBinding>
                    <telerikChart:PropertyNameDataPointBinding PropertyName="ProductQuantity"/>
                  </telerikChart:PieSeries.ValueBinding>
            </telerikChart:PieSeries>
          </telerikChart:RadPieChart.Series>
    </telerikChart:RadPieChart>
</ContentPage.Content>

But when I run the I'm getting error saying " System..IO.FileNotFoundxception has been thrown Could not load file or assembly 'Telerik.XamarinForms.Chart' or one of its dependencies.

Can anybody tell how i can solve this.

Any help would be greatly appreciated.

If this is a Xamarin Forms application you must install the package in all the projects, the Forms one and the native ones.

This error usually happens because you installed only the portable libraries package which is only a facade to the real ones.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM