Hi,
I’m using telerik RadDataGrid in a page.xaml (UWP project) and
I need some help with a couple of problems. This is my RadDataGrid:
<telerikGrid:RadDataGrid Margin="30"
SelectionMode="Single"
ItemsSource="{Binding ActivitiesList}"
AutoGenerateColumns="False">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn PropertyName="Identifier" Header="Id
Registro"/>
<telerikGrid:DataGridTextColumn PropertyName="CountryText" Header="País"/>
<telerikGrid:DataGridTextColumn PropertyName="ProductText" Header="Producto"/>
<telerikGrid:DataGridDateColumn PropertyName="DateReception" Header="Fecha"/>
<telerikGrid:DataGridTextColumn PropertyName="DealerText" Header="Distribuidor"/>
<telerikGrid:DataGridTextColumn PropertyName="Comment" Header="Comentarios"/>
</telerikGrid:RadDataGrid.Columns>
In code behind I full the ActivitiesList, so the list have
about 10 elements.
public ObservableCollection<Activity> ActivitiesList { get; set;}
private void LoadDatabase()
{
ActivitiesList = new ObservableCollection<Activity>();
foreach (var item in Database.ActivitiesDB.Where(x=> x.Status == A ctivityStatus.Finalizado))
ActivitiesList.Add(item);
}
The list is shown correctly. But the problems appear later.
1- If I modify the size of the window, sometimes
appears the bug:
#if DEBUG &&
!DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION:
"Layout cycle detected. Layout could not complete"
2- After fix the size of the raddatagrid, Height="300" Width="500"; if I play with the vertical scrollbar, sometimes (depends on the grid size configured) appear the bug:
#if DEBUG &&
!DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION:
"Index was outside the bounds of the array"
3- I’ve tried to modify the configuration of the
scrollviewer, and it seems to not have effect in my view; for instance:
I configure ScrollViewer.VerticalScrollBarVisibility="Hidden", but I see "Auto" configuration.
I have more datagrids, and the problema seems appear
only in some cases.
I’m waiting your feedback,
Thanks a lot