This is a migrated thread and some comments may be shown as answers.

[Solved] Telerik RadGrid Control IS not Adding in XAML page

1 Answer 99 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arjun
Top achievements
Rank 1
Arjun asked on 08 Jan 2014, 05:42 AM
Hi EveryOne,

Am Using Telerik  xmlns:telerikGrid="using:Telerik.UI.Xaml.Controls.Grid" and Telerik.UI.Xaml.Grid.dll to Use Telerik:Radgrid,

But am unable call radgrid using Telerik Namespace

any suggestion would be of great help

Thanks
Arjun
<Page
    x:Name="pageRoot"
    x:Class="Sample.WinUI.BasicPage1"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    xmlns:local="using:Sample.WinUI"
    xmlns:common="using:Sample.WinUI.Common"
  xmlns:telerikGrid="using:Telerik.UI.Xaml.Controls.Grid"
        xmlns:telerikGridPrimitives="using:Telerik.UI.Xaml.Controls.Grid.Primitives"
    xmlns:telerikPrimitivesCommon="using:Telerik.UI.Xaml.Controls.Primitives.Common"
    mc:Ignorable="d">
 
    <Page.Resources>
        <!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
        <x:String x:Key="AppName">My Application</x:String>
    </Page.Resources>
 
    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
 
        <!-- Back button and page title -->
        <Grid>
           
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Margin="39,59,39,0" Command="{Binding NavigationHelper.GoBackCommand, ElementName=pageRoot}"
                        Style="{StaticResource NavigationBackButtonNormalStyle}"
                        VerticalAlignment="Top"
                        AutomationProperties.Name="Back"
                        AutomationProperties.AutomationId="BackButton"
                        AutomationProperties.ItemType="Navigation Button"/>
            <TextBlock x:Name="pageTitle" Text="{StaticResource AppName}" Style="{StaticResource HeaderTextBlockStyle}" Grid.Column="1"
                        IsHitTestVisible="false" TextWrapping="NoWrap" VerticalAlignment="Bottom" Margin="0,0,30,40"/>
           
        </Grid>
        <Grid Grid.Row="1" Name="x"  >
           <telerikGrid:
        </Grid>
    </Grid>
</Page>

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 08 Jan 2014, 11:38 AM

Hi Arjun,

Thank you for contacting us.

As the RadDataGrid relies on several assemblies(not only on Telerik.UI.Xaml.Grid), you have to add references to these assemblies. Here is an article from our online documentation that explains in details how to do this - RadDataGrid - Getting Started.

I hope this information was useful. Please, do not hesitate to contact us if you have further questions.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Arjun
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or