This question is locked. New answers and comments are not allowed.
Hi,
I am getting this wierd error in Rad Grid View when I am binding to the DataTable(http://blogs.telerik.com/vladimirenchev/posts/09-04-23/lightweight_datatable_for_your_silverlight_applications.aspx) implementation exposed for dynamic columns by Vlad in other post. My problem is that this error is just popping up without any details. The Grid doesn't load and it just shows the error. My dynamic data table has 6 columns. 5 are string and one is double. It works fine for 5-10 records but when i bind to around 200+ records it simply fails and redirects mt to the White Screen. The values in the rows are also simple performance counters data. Sometimes when i debug i get to see grid but again when i drag a column to the group header and then expand a group item it again crashes with the same issue. I am using the latest internal build v724 for Silverlight 3. I tried using the same with simple data type of string(using double value also as string) also but still it fails.
Here is my XAML:
<Controls:RadGridView x:Name="gridViewPerformanceCounter" ScrollMode="RealTime" ColumnsWidthMode="Fill" Margin="10,0,0,0" />
and here is my code behind:
void dataContext_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
switch (e.PropertyName)
{
case "Data":
this.Dispatcher.BeginInvoke(InitializeGridView);
break;
}
}
public void InitializeGridView()
{
PerformanceMonitorGridViewModel dataContext = (PerformanceMonitorGridViewModel)DataContext;
this.gridViewPerformanceCounter.ItemsSource = dataContext.Data;
}
Where dataContext.Data is of type DataTable.
Any help is really appreciated.
I am getting this wierd error in Rad Grid View when I am binding to the DataTable(http://blogs.telerik.com/vladimirenchev/posts/09-04-23/lightweight_datatable_for_your_silverlight_applications.aspx) implementation exposed for dynamic columns by Vlad in other post. My problem is that this error is just popping up without any details. The Grid doesn't load and it just shows the error. My dynamic data table has 6 columns. 5 are string and one is double. It works fine for 5-10 records but when i bind to around 200+ records it simply fails and redirects mt to the White Screen. The values in the rows are also simple performance counters data. Sometimes when i debug i get to see grid but again when i drag a column to the group header and then expand a group item it again crashes with the same issue. I am using the latest internal build v724 for Silverlight 3. I tried using the same with simple data type of string(using double value also as string) also but still it fails.
Here is my XAML:
<Controls:RadGridView x:Name="gridViewPerformanceCounter" ScrollMode="RealTime" ColumnsWidthMode="Fill" Margin="10,0,0,0" />
and here is my code behind:
void dataContext_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
switch (e.PropertyName)
{
case "Data":
this.Dispatcher.BeginInvoke(InitializeGridView);
break;
}
}
public void InitializeGridView()
{
PerformanceMonitorGridViewModel dataContext = (PerformanceMonitorGridViewModel)DataContext;
this.gridViewPerformanceCounter.ItemsSource = dataContext.Data;
}
Where dataContext.Data is of type DataTable.
Any help is really appreciated.
