This question is locked. New answers and comments are not allowed.
Hi,
I am using radgrid and setting the ItemsSource to a collection. When a new item is added to this collection it will create a new empty row in the radgrid. But I am not able to set focus on this newly added row. I need to scroll down to find the newly added row. How can I set focus to the newly added row? I am using MVVM.
Below are the code snippets,
xaml -<telerikGrid:RadGridView ShowGroupPanel="False" ColumnWidth="*"
Dim eMem As New Item
CollectionName.Add(eMem)
Thanks in advance,
Afsal
I am using radgrid and setting the ItemsSource to a collection. When a new item is added to this collection it will create a new empty row in the radgrid. But I am not able to set focus on this newly added row. I need to scroll down to find the newly added row. How can I set focus to the newly added row? I am using MVVM.
Below are the code snippets,
xaml -<telerikGrid:RadGridView ShowGroupPanel="False" ColumnWidth="*"
Name="radSummaryLayout" AutoGenerateColumns="False" ItemsSource="{Binding CollectionName}" Height="Auto"
ScrollMode="RealTime" AutoExpandGroups="False" CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" ShowColumnHeaders="True" BorderBrush="#FF7C87B1" BorderThickness="1" IsFilteringAllowed="False" AllowDrop="False">
In ViewModel- the following code executes in a button click event.Dim eMem As New Item
CollectionName.Add(eMem)
Thanks in advance,
Afsal