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

[Solved] Dynamic Binding : Value does not fall within the expected range exception

1 Answer 236 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yusuf
Top achievements
Rank 1
Yusuf asked on 05 Aug 2009, 12:46 AM
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.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Aug 2009, 07:35 AM
Hi Yusuf,

This issues is fixed and next week we will upload our official service pack.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Yusuf
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or