SelectedItem of GridView in TabControl

2 posts, 0 answers
  1. Joseph Gershgorin
    Joseph Gershgorin avatar
    28 posts
    Member since:
    Aug 2009

    Posted 14 Jul 2010 Link to this post

    I have a Gridview inside a secondary RadTabItem which bound to a datasource. When selecting the tab the first row in the bound Gridview gets selected. How do I prevent this? The gridview doesn't behave this way when placed outside the Radtab control. 

    Update:

    For now I've created a work around where I use the grid's loaded event and a flag to determine if the app is allowed to set the grid's two-way bound SelectedItem property. When the loaded event has fired the bool flag is set to allow setting the value and also the SelectedItem viewmodel bound property value is explicitly set to null. 
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Jul 2010 Link to this post

    Hi,

     With Q1 you can set IsSynchronizedWithCurrentItem to false to avoid this. In Q2 this is false by default. 

    Greetings,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top