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

How to make newly added row as the selected row

1 Answer 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 07 Mar 2018, 11:35 AM

Hi Telerik,

 I am doing some validations when I insert new row and editing the details of the row.I am using SelectedItem to do validations in background.So I want to make the new row as selectedItem once it is inserted after clicking on the button "Click here to add new Item".Is there any way to  make selecteditem the newly created row through xaml?

 

Regards,

Nagasree.

  

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 09 Mar 2018, 01:23 PM
Hello Nagasree,

The desired behavior can be achieved with the help of ScrollIntoViewAsync method but if no grouping, sorting or filtering is used. You can take a look at this thread 1 and more specifically you can read the reply from Vanya in it. In this thread 2, you can read Nedyalko's reply to understand why it is not recommended to do it if using sorting, grouping or filtering. Please take a look at them and let me know if you need further assistance.

I hope that this helps.

Regards,
Martin Vatev
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or