Hello,
You do not need to run the project to check the idea behind Blend behaviors - you can create also your own behavior similar to the demo posted in my previous reply. My idea was to show you how to create your own behavior (Blend style or custom) to synchronize both collections (SelectedItems and your own property). For example if you choose Blend behaviors you need to create something like this:
public class MyMultiSelectBehavior : Behavior<RadGridView>
{
protected override void OnAttached()
{
base.OnAttached();
Grid.SelectedItems.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedItems_CollectionChanged);
}
void SelectedItems_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
throw new NotImplementedException();
}
public RadGridView Grid
{
get
{
return AssociatedObject as RadGridView;
}
}
}
Please check the project again to know more about how to attach this behavior to desired grid declaration in XAML.
Best wishes,
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.