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

Grid row position moves to bottom when having GroupDescriptor

2 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 27 Nov 2018, 05:53 AM

Hello Team,
I am having a  RadGridView with five different columns with List of 100 records with different categories. When I am updating any cell and selecting any row the updated row directly moves to last position(at the bottom) in the group. When I am removing GroupDescriptor it is working fine. I am using telerik silverlight  2013.2.724.1050 version. Can you please let me know any way so the updated row don't change its position.
In Xaml I am using 
 <tlr:RadGridView Name="optionsGrid"
                                                             Grid.Row="1"
                                                             Grid.Column="0"
                                                             GroupRenderMode="Flat"
                                                             Margin="0,0,0,10"
                                                             HorizontalAlignment="Stretch"
                                                             AutoGenerateColumns="False"
                                                             CanUserDeleteRows="False"
                                                             CanUserInsertRows="False"
                                                             
                                                             EnableRowVirtualization="True"
                                                             IsReadOnly="{Binding Path=IsSelected,
Converter={StaticResource BoolToBoolConverter}, ConverterParameter=Invert}"
                                                             ItemsSource="{Binding Path=Selected.Records}"
                                                             ScrollViewer.VerticalScrollBarVisibility="Auto"
                                                             SelectedItem="{Binding Path=Selected.Selecteditem, Mode=TwoWay}"
                                                             ShowGroupPanel="False"
                                                             ShowInsertRow="False">
                                                <tlr:RadGridView.GroupDescriptors>
                                                    <tlr:GroupDescriptor Member="CategoryName" >
                                                        
                                                        <tlr:GroupDescriptor.AggregateFunctions>
                                                            <tlr:CountFunction Caption="Total: " />
                                                        </tlr:GroupDescriptor.AggregateFunctions>
                                                    </tlr:GroupDescriptor>                                                    
                                                </tlr:RadGridView.GroupDescriptors>
                                                <tlr:RadGridView.Columns>
                                                    <tlr:GridViewDataColumn 
                                                        Width="25"
                                                        DataMemberBinding="{Binding Path=IsChecked}"
                                                        IsReadOnly="True">
                                                        <tlr:GridViewDataColumn.CellTemplate>
                                                            <DataTemplate>
                                                                <CheckBox tlr:StyleManager.Theme="Vista" IsChecked="{Binding Path=IsChecked, Mode=TwoWay}" />
                                                            </DataTemplate>
                                                        </tlr:GridViewDataColumn.CellTemplate>
                                                    </tlr:GridViewDataColumn>
                                                    <tlr:GridViewDataColumn 
                                                        MinWidth="50"
                                                        DataMemberBinding="{Binding Path=Name}"
                                                        Header="Name"
                                                         />
<tlr:GridViewDataColumn 
                                                        MinWidth="50"
                                                        DataMemberBinding="{Binding Path=City}"
                                                        Header="City"
                                                         />
<tlr:GridViewDataColumn 
                                                        MinWidth="50"
                                                        DataMemberBinding="{Binding Path=State}"
                                                        Header="State"
                                                         />
<tlr:GridViewDataColumn 
                                                        MinWidth="50"
                                                        DataMemberBinding="{Binding Path=Country}"
                                                        Header="Country"
                                                        />
</tlr:RadGridView.Columns>
</tlr:RadGridView>

Thanks

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 29 Nov 2018, 04:25 PM
Hello Ajay,

I will check what happens and let you know about my findings tomorrow. In the meantime, may I ask you to send some code snippets that show the model behind the gridview rows and some dummy data population code?

Regards,
Martin Ivanov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dilyan Traykov
Telerik team
answered on 03 Dec 2018, 04:38 PM
Hello Ajay,

I tested the issue you described at my end, but I'm unable to replicate it using the latest version of the controls. I've attached the project I used in the process for your reference.

Could you please have a look and let me know how this setup differs from the one at your end?

Judging by the ShowInsertRow property you've defined for the RadGridView, I assume that you're using a version of the suite prior to Q1 2015. With this said, could you please also try upgrading to the latest version of the controls if possible and check if the issue persists?

Please let me know how this goes.

Regards,
Dilyan Traykov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Ajay
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Dilyan Traykov
Telerik team
Share this question
or