Bug in GridViewDataControl

2 posts, 0 answers
  1. Rashad Rivera
    Rashad Rivera avatar
    63 posts
    Member since:
    Aug 2009

    Posted 14 Apr 2010 Link to this post

    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
  2. Vlad
    Vlad avatar
    11100 posts

    Posted 15 Apr 2010 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top