Auto selection of First row in RadGridView

3 posts, 0 answers
  1. Rami
    Rami avatar
    4 posts
    Member since:
    Mar 2011

    Posted 07 Nov 2011 Link to this post

    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. Vera
    Admin
    Vera avatar
    265 posts

    Posted 08 Nov 2011 Link to this post

    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 >>
  3. Rami
    Rami avatar
    4 posts
    Member since:
    Mar 2011

    Posted 08 Nov 2011 Link to this post

    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
Back to Top