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

SelectedItem of GridView in TabControl

1 Answer 64 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Joseph Gershgorin
Top achievements
Rank 1
Joseph Gershgorin asked on 14 Jul 2010, 07:00 PM
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. 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Jul 2010, 06:51 AM
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
Tags
TabControl
Asked by
Joseph Gershgorin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or