Exception on clicking Grid Row - Silverlight 4 Grid View

5 posts, 0 answers
  1. Jadoo
    Jadoo avatar
    3 posts
    Member since:
    Dec 2010

    Posted 13 Feb 2015 Link to this post

    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



  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 13 Feb 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. Jadoo
    Jadoo avatar
    3 posts
    Member since:
    Dec 2010

    Posted 19 Feb 2015 in reply to Dimitrina Link to this post

    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
  5. Jadoo
    Jadoo avatar
    3 posts
    Member since:
    Dec 2010

    Posted 19 Feb 2015 in reply to Jadoo Link to this post

    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;
                               }
  6. Boris
    Admin
    Boris avatar
    276 posts

    Posted 24 Feb 2015 Link to this post

    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.

     
Back to Top
DevCraft banner