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

Adding Grid Causes Error

1 Answer 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 02 Dec 2008, 10:02 PM

I look at the basic grid example that comes with the installation and i have created my own control with the grid in my project. When running the silverlight project an clicking on the tab that holds my gridcontrol i get the following javascript error and the page crashes.
System.Collections.Generic.KeyNotFoundException the given key was not present in the dictionary.
My code below..

 

<

Grid x:Name="LayoutRoot" Background="White">

 

 

 

 

<Grid>

 

 

 

 

<telerik:RadGridView Name="radGridViewSelection" AutoGenerateColumns="True"/>

 

 

 

 

</Grid>

 

 

 

 

<Button HorizontalAlignment="Left" x:Name="uxFetch" Click="uxFetch_Click" Margin="34,0,0,20" VerticalAlignment="Bottom" Content="Button" d:LayoutOverrides="Height"/>

 

 

 

 

 

</Grid>

 

1 Answer, 1 is accepted

Sort by
0
Jimmy
Telerik team
answered on 03 Dec 2008, 12:10 PM
Hello Andreas Ekdahl,

Would it be possible for you to send us a project where this problem occurs for we did not manage to reproduce your problem.

We have tested the GridView in a TabControl scenario and it works fine. One possible solution that might cause this problem is if you have not set the ItemsSource property of RadGridView and it stays with its null default value (this is an issue that will be fixed in our future release).

If however this is not the case, we will appreciate if you send us more feedback on your particular scenario.

Kind regards,
Jimmy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Andreas
Top achievements
Rank 1
Answers by
Jimmy
Telerik team
Share this question
or