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

Auto selection of First row in RadGridView

2 Answers 201 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rami
Top achievements
Rank 1
Rami asked on 07 Nov 2011, 08:23 PM
Hi,

I'm running the latest Telerik controls for Silverlight, Q2 2011 SP1. In some of the grids, I don't want the first row to be automatically seleced so I was setting the IsSynchronizedWithCurrentItem="False".

In one of the grids, it usually has one row loaded, I would like that to be automatically selected. Setting the IsSynchronizedWithCurrentItem="True" does not seem to work anymore. The grid is loaded by binding the ItemsSource to an ObservableCollection using in a view model. It does not seem to matter if you set IsSynchronizedWithCurrentItem or not set this value anymore.

Any ideas on what to do to allow the first item be selected?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 08 Nov 2011, 09:29 AM
Hello Rami,

I tested your scenario with the version you specified and it worked as expected. When IsSynchronizedWithCurrentItem property is set to true the first and only item is selected. May I ask to take a look at the attached project and let me in case I am missing something?
 
All the best,
Vera
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Rami
Top achievements
Rank 1
answered on 08 Nov 2011, 06:23 PM
Thanks Vera - I tried the code you sent and that works. I went back to my code and set things like you have and now it's working; not sure what I was missing before but it is selecting the first row correctly now. Thanks again!

Rami
Tags
GridView
Asked by
Rami
Top achievements
Rank 1
Answers by
Vera
Telerik team
Rami
Top achievements
Rank 1
Share this question
or