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

data loading and MVVM currentitem binding

1 Answer 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 17 May 2010, 08:00 AM
Hi Telerik Team,

i'm evaluating the grid view and i have following problem:
the gridview currentitem and itemsource is bind to a viewmodel.
the viemodel loads the data, triggered from the grid Loaded event.
And right after loading (synchronous) i set the new currentitem,
 but its to early for the grid view !

Wath is the bes way to setting the currentitem from the viewmodel?
Right now i'am using a trick via Dispatcher.BeginInvoke.

Thanks
Ralf

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 17 May 2010, 03:58 PM
Hello Ralf Bellmann,

Currently using Dispatcher is one of the better options. Soon we will modify the RadGridView in such a way that you will be able to control currency and selection right after ItemsSource is set. 


Greetings,
Milan
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
GridView
Asked by
Ralf
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or