-
-
Save davidknaack/235affa89dfaeb7ddff788700b0c4db0 to your computer and use it in GitHub Desktop.
Teleric.UI.for.UWP v1.0.2.8 RadDataGrid bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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