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

Exception on clicking Grid Row - Silverlight 4 Grid View

4 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jadoo
Top achievements
Rank 1
Jadoo asked on 13 Feb 2015, 06:06 AM
Hello All,

We are facing a strange issue - for only one user, when he clicks on the grid view row it generates anSystem.IndexOutOfRangeException error.  Please find the exception details below. Please also note that our product is based on Telerik Controls for Silverlight 4.  Could you please shed some light on the possible cause.. .

Exception
Message: System.IndexOutOfRangeException | [Arg_IndexOutOfRangeException]
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20513.00&File=mscorlib.dll&Key=Arg_IndexOutOfRangeException |    at Telerik.Windows.Controls.GridViewColumnCollectionInternal.NotifyPropertyChanged(DependencyObject d, String propertyName, DependencyPropertyChangedEventArgs e, UpdateTarget target)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.NotifyPropertyChanged(DependencyObject d, String propertyName, DependencyPropertyChangedEventArgs e, UpdateTarget target)
   at Telerik.Windows.Controls.GridViewColumn.NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e, UpdateTarget target)
   at Telerik.Windows.Controls.GridViewColumn.IsVisibleChanged(DependencyObject target, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter) 


 Rithesh



4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 13 Feb 2015, 11:01 AM
Hi Rithesh,

Based on the stack trace you shared, it seems there is an attempt to modify the visibility of a column. Do you have any additional logic implemented related to this matter?

If so, and you still experience the problem, may I ask you to try isolating the issue in a demo project illustrating your exact setup and send it to us in a support ticket? You can also take a look at this blog post for a reference on how to isolate an issue. 

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jadoo
Top achievements
Rank 1
answered on 19 Feb 2015, 02:49 PM
Dimitrina,

Thanks for the reply. I am bit of a doubt that how a sample project would help you in this case. As i said earlier this is happening only for one user - who is working on windows 7 system. If the same user access the app from a different machine there are no issues. Is there any possibility of the cause of the issue - be windows 7 and its updates ?

Rithesh
0
Jadoo
Top achievements
Rank 1
answered on 19 Feb 2015, 03:23 PM
Dimitrina,

Just to add, as per the analysis done it was found that the error is happening from the below snippet :

if (gridViewColumn.Header != null && gridViewColumn.Header.ToString().ToLower() == "iid")
                           {
                               gridViewColumn.IsVisible = false;
                           }
0
Boris
Telerik team
answered on 24 Feb 2015, 07:26 AM
Hello Rithesh,

I am afraid that the provided information so far is insufficient, that is why I would like to ask you to answer us some additional questions:

1) Does the issue reproduces only on one user's machine with Windows7 or you are able to reproduce it in other machines with Windows7? 

2) If you are able to reproduce it on other machines using Widndows 7 could you please send us a small runnable sample project that reproduces the issue? Another option would be to provide us with code snippets with the definition of RadGridView, the code that is used to hide the columns and any other events used.

3) What version of the controls are you using? 

Regards,
Boris
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Jadoo
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jadoo
Top achievements
Rank 1
Boris
Telerik team
Share this question
or