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

[Solved] A strange Bug in GridViewSelectColumn

1 Answer 178 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.
david ocasio
Top achievements
Rank 1
david ocasio asked on 05 Nov 2009, 11:55 PM
If a grid has a selection column
The grid selectionmode is set to multiple

You enter edit mode on an integer field
Type the leter "a" and all the rows select automaitcally
Any other character does not trigger it

I created a test project to make sure it was not something i was doing
and the behavior still exists

i am using the q3 released trial (soon to use the q3 released this coming week they promise me)

<UserControl xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"  x:Class="agTestBed.MainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">  
  <Grid x:Name="LayoutRoot">  
        <telerikGridView:RadGridView x:Name="TestGrid" SelectionMode="Multiple" AutoGenerateColumns="False">  
            <telerikGridView:RadGridView.Columns > 
                <telerikGridView:GridViewSelectColumn></telerikGridView:GridViewSelectColumn> 
                <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding iQty,Mode=TwoWay}" ></telerikGridView:GridViewDataColumn> 
            </telerikGridView:RadGridView.Columns> 
        </telerikGridView:RadGridView> 
  </Grid> 
</UserControl> 
 

Imports System.Windows.Data  
Imports System.Windows.Ria.Data  
Imports Telerik.Windows.Controls  
Imports System.ComponentModel  
Imports System.ComponentModel.DataAnnotations  
Imports System.Collections.ObjectModel  
Imports System.Runtime.CompilerServices  
 
Partial Public Class MainPage  
    Inherits UserControl  
 
    Public Sub New()  
        InitializeComponent()  
    End Sub  
 
    Public CollTestclass As New ObservableCollection(Of TestClass)  
    Private Sub MainPage_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded  
        CollTestclass.Add(New TestClass With {.iQty = 5})  
        CollTestclass.Add(New TestClass With {.iQty = 1})  
        CollTestclass.Add(New TestClass With {.iQty = 3})  
        CollTestclass.Add(New TestClass With {.iQty = 10})  
        CollTestclass.Add(New TestClass With {.iQty = 12})  
        CollTestclass.Add(New TestClass With {.iQty = 17})  
        CollTestclass.Add(New TestClass With {.iQty = 22})  
        TestGrid.ItemsSource = CollTestclass 
    End Sub  
End Class  
 
Public Class TestClass  
    Implements INotifyPropertyChanged  
 
    Public Event PropertyChanged(ByVal sender As Object, ByVal e As System.ComponentModel.PropertyChangedEventArgs) Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged  
    Private Sub FirePropertyChanged(ByVal [property] As String)  
        If Not String.IsNullOrEmpty([property]) Then  
            RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs([property]))  
        End If  
    End Sub  
 
    <Display(Name:="iQty", Description:="iQty")> _  
    Public Property iQty() As Integer  
        Get  
            Return _iQty  
        End Get  
        Set(ByVal value As Integer)  
            _iQty = value 
            FirePropertyChanged("iQty")  
        End Set  
    End Property  
    Protected _iQty As Integer  
 
End Class  
 

1 Answer, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 06 Nov 2009, 12:33 PM
Hello david ocasio,

Thank you for reporting this issue. We fixed it right away and the fix will be available this Friday with our latest internal build.

I have updated your Telerik points.


Best wishes,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
david ocasio
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or