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

Bug in GridViewDataControl

1 Answer 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rashad Rivera
Top achievements
Rank 1
Rashad Rivera asked on 14 Apr 2010, 06:35 PM
Hello All,

   In the private bool Telerik.Windows.Controls.GridView.GridViewDataControl.Move(FocusNavigationDirection navigationDirection) method, there is an unchecked condition in the FocusNavigationDirection.Next and Previous switch condition that throws a NullRefereceException.  Below is the code snippet:

      switch (navigationDirection)  
      {  
        case FocusNavigationDirection.Next:  
        case FocusNavigationDirection.Previous:  
          if (!this.CurrentCell.IsInEditMode)  
          { //...  
 

I know its a bug because just below that is the proper form of the condition that checks this.CurrentCell for null:
        case FocusNavigationDirection.Left:  
        case FocusNavigationDirection.Right:  
        case FocusNavigationDirection.Up:  
        case FocusNavigationDirection.Down:  
          currentCellContainer = this.OnArrowKeyDown(this.CurrentCell, navigationDirection);  
          if ((this.CurrentCell != null) && this.CurrentCell.IsInEditMode)  
          { //...  
 

- Rashad Rivera
  omegusprime.com

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Apr 2010, 07:01 AM
Hello Rashad,

This issue is already fixed! You can wait for our upcoming service pack (early next week) our get our latest internal build.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Rashad Rivera
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or