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

[Solved] Row Selection Not Working

5 Answers 177 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.
Terry
Top achievements
Rank 1
Terry asked on 17 Jul 2010, 01:10 AM
I've upgraded to Q2 2010 and I find I can no longer select a row.  The selector is pointing to the first row, but no matter what row I click, the selector remains on the first row.  I've upgraded two projects that worked before to the Q2 release and they quit working.

I am able to edit the cells of a row and the underlying item is updated, but the currently selected row remains the first row.

Here is the grid definition for one of the projects.

<radGridView:RadGridView x:Name="gvTimeSheet" AutoGenerateColumns="False" AddingNewDataItem="gvTimeSheet_AddingNewDataItem"
      ShowGroupPanel="False" RowValidating="gvTimeSheet_RowValidating" CanUserSelect="True" SelectionMode="Extended"  IsFilteringAllowed="False"
      IsReadOnly="False" CanUserInsertRows="True" ShowColumnFooters="False" ShowGroupFooters="False" RowEditEnded="gvTimeSheet_RowEditEnded" >
    <radGridView:RadGridView.Columns>
        <radGridView:GridViewDataColumn Header="Date"
            DataMemberBinding="{Binding StartDate, Mode=TwoWay}" >
            <radGridView:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding StartDate, Converter={StaticResource DateToStringConverter}}" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellTemplate>
            <radGridView:GridViewDataColumn.CellEditTemplate>
                <DataTemplate>
                    <radInput:RadDatePicker Loaded="Editor_Loaded" KeyDown="RadDatePicker_KeyDown" SelectionChanged="RadDatePicker_SelectionChanged"
                            SelectedDate="{Binding StartDate, Mode=TwoWay}" DisplayDateChanged="RadDatePicker_DisplayDateChanged" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellEditTemplate>
        </radGridView:GridViewDataColumn>
        <!-- Start Time -->
        <radGridView:GridViewDataColumn Header="Start Time"
            DataMemberBinding="{Binding StartTimeSpan, Mode=TwoWay}">
            <radGridView:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding StartTimeSpan, Converter={StaticResource TimeSpanToStringConverter}}" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellTemplate>
            <radGridView:GridViewDataColumn.CellEditTemplate>
                <DataTemplate>
                    <radInput:RadTimePicker x:Name="StartTimePicker" TimeInterval="0:15:0"   
                         SelectedTime="{Binding StartTimeSpan, Mode=TwoWay}" KeyDown="TimePicker_KeyDown" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellEditTemplate>
        </radGridView:GridViewDataColumn>
          
        <!-- End Time -->
        <radGridView:GridViewDataColumn Header="End Time"
            DataMemberBinding="{Binding EndTimeSpan, Mode=TwoWay}">
            <radGridView:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding EndTimeSpan, Converter={StaticResource TimeSpanToStringConverter}}" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellTemplate>
            <radGridView:GridViewDataColumn.CellEditTemplate>
                <DataTemplate>
                    <radInput:RadTimePicker TimeInterval="0:15:0"   
                         SelectedTime="{Binding EndTimeSpan, Mode=TwoWay}" KeyDown="TimePicker_KeyDown" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellEditTemplate>
        </radGridView:GridViewDataColumn>
         
        <!-- Customer -->
        <radGridView:GridViewComboBoxColumn x:Name="cboCustomer" DataMemberBinding="{Binding CustomerID, Mode=TwoWay}" Header="Customer" 
              DisplayMemberPath="CustName" SelectedValueMemberPath="CustomerID" />
          
        <!-- Project -->
        <radGridView:GridViewDataColumn Header="Project" DataMemberBinding="{Binding ProjectID, Mode=TwoWay}" >
            <radGridView:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding ProjName}" Loaded="TextBlock_Loaded" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellTemplate>
            <radGridView:GridViewDataColumn.CellEditTemplate>
                <DataTemplate>
                    <radInput:RadComboBox x:Name="cboProject" DisplayMemberPath="ProjName" Text="{Binding ProjName, Mode=TwoWay}"
                        SelectedValue="{Binding ProjectID, Mode=TwoWay}" Loaded="cboProject_Loaded"  SelectionChanged="cboProject_SelectionChanged" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellEditTemplate>
        </radGridView:GridViewDataColumn>
          
        <!-- Description -->
        <radGridView:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Description, Mode=TwoWay}">
            <radGridView:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Description}" />
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellTemplate>
            <radGridView:GridViewDataColumn.CellEditTemplate>
                <DataTemplate>
                    <TextBox Text="{Binding Description, Mode=TwoWay}"/>
                </DataTemplate>
            </radGridView:GridViewDataColumn.CellEditTemplate>
        </radGridView:GridViewDataColumn>
    </radGridView:RadGridView.Columns>
</radGridView:RadGridView>

5 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 19 Jul 2010, 08:57 AM
Hello Terry,

I believe the issue is caused by the fact that we have changed the default value for IsSynchronizedwithCurrentItem which is now null. Setting this property to true will resolve the issue.


Best wishes,
Milan
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
0
Terry
Top achievements
Rank 1
answered on 19 Jul 2010, 06:06 PM
That fixed it, Milan, Thanks.

It seems like the default ought to be True.  If CanUserSelect="True", then the user ought to be able to select.

Terry
0
jay
Top achievements
Rank 1
answered on 05 Sep 2010, 11:38 PM
I have a similar issue that surfaced close to the time I upgraded to Q2 2010. 
I can select rows but while the row selector arrow moves to the selected row, the entire row is NOT selected.
Initially, I thought it was my project/solution, but when i ran the RadControl Q2 2010 demo application the radgridview row selection still shows the problem - No entire row highlighting. The Online demo, however works as expected.
I changed the IsSynchronizedWithCurrentItem property to True but that did not help.

Thoughts ??


0
Milan
Telerik team
answered on 06 Sep 2010, 03:21 PM
Hi jay,

Could you send us a picture of the erroneous selection or a sample project that demonstrates this behavior?


Best wishes,
Milan
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
0
jay
Top achievements
Rank 1
answered on 06 Sep 2010, 04:02 PM
Hi Milan,

Thanks for your prompt response.
Using the binaries from your latest internal build fixed the problem.

Thanks!
J
Tags
GridView
Asked by
Terry
Top achievements
Rank 1
Answers by
Milan
Telerik team
Terry
Top achievements
Rank 1
jay
Top achievements
Rank 1
Share this question
or