This question is locked. New answers and comments are not allowed.
The issue I am having is that the following code doesn't bring the particular indexed row into view. The grid does scroll a fairly close but doesn't quite get it. Perhaps I am doing something wrong.
The code I am executing is:
| this.Users.Add( userInfo ); cGridView.SelectedItem = userInfo; |
| var index = cGridView.Items.IndexOf( userInfo ); |
| cGridView.BringIndexIntoView( index ); |
| Debug.WriteLine( "index: " + index.ToString() + " total: " + cGridView.Items.Count.ToString() ); |
The grid definition is:
| <telerikGridView:RadGridView Name="cGridView" |
| Grid.Row="1" Margin="2,2,2,2" |
| ColumnsWidthMode="Fill" |
| AutoGenerateColumns="False" |
| RowDetailsVisibilityMode="VisibleWhenSelected" |
| ShowGroupPanel="False" |
| HorizontalAlignment="Stretch" |
| RowIndicatorVisibility="Collapsed"> |
The grid does scroll. It just doesn't scroll far enough.
The output of my Debug.Writeline is Index: 34 total: 35
I have attempted a cGridView.Rebind() just after the add to the observable collection but this throws a null reference exception ( somewhere in GridView that I can't look at ).
I suspect this could be related to the fact that I have a details panel defined.
