Skip to content

Instantly share code, notes, and snippets.

@davidknaack
Last active April 8, 2022 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidknaack/235affa89dfaeb7ddff788700b0c4db0 to your computer and use it in GitHub Desktop.
Save davidknaack/235affa89dfaeb7ddff788700b0c4db0 to your computer and use it in GitHub Desktop.
Teleric.UI.for.UWP v1.0.2.8 RadDataGrid bug
<Page
x:Class="RadDataGridBug.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:RadDataGridBug"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:telerikGrid="using:Telerik.UI.Xaml.Controls.Grid"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}">
<Grid>
<telerikGrid:RadDataGrid ItemsSource="{Binding StaticData}" x:Name="DataGrid"
FrozenColumnCount="1" UserEditMode="Inline" AutoGenerateColumns="False">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn PropertyName="Country" CanUserEdit="False"/>
<telerikGrid:DataGridTextColumn PropertyName="Capital"/>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>
</Grid>
</Page>
using System.Collections.Generic;
using Windows.UI.Xaml.Controls;
namespace RadDataGridBug
{
public sealed partial class MainPage : Page
{
public List<object> StaticData => new()
{
new { Country = "India", Capital = "New Delhi"},
new { Country = "South Africa", Capital = "Cape Town"},
};
public MainPage()
{
this.InitializeComponent();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment