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

Binding Selected Items on GridView using DataPager

3 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 21 May 2011, 12:55 AM
I've read and tried implementing the behavior referenced in other posts (How To: Synchronize your UI selected items with your data context using MVVM and Blend behaviors for Silverlight and WPF ).

I'm having binding issues because I'm also using a RadDataPager.

My DataPager is bound to an ObservableCollection, and the Grid is bound to the Pager.

Now I want to add multiple items binding, so I end up with something that looks like this in your sample:

<i:Interaction.Behaviors>
    <local:MyMultiSelectBehavior SelectedItems="{Binding SelectedItems, Source={StaticResource context}}" />
</i:Interaction.Behaviors>

but my source statement on there needs to be a binding to the pager like this:

Source={Binding PagedSource, ElementName=RadDataPager}

and I'm getting binding exceptions thrown when I try to open the form.

Again... All I'm trying to do is the same as Vladimir's example except extend it to also use a RadDataPager.

Any help would be wonderful, thanks!

-Dave

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 23 May 2011, 09:26 AM
Hi Dave,

 

You may take a look at the following forum thread for further info. 


Kind regards,
Vanya Pavlova
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
0
Dave
Top achievements
Rank 1
answered on 23 May 2011, 02:09 PM
Thanks Vanya...

I read that entire thread... and I don't see anything in there about binding to multiple selections while using a datapager... was that the link you meant to send?

Thanks!

-Dave
0
Milan
Telerik team
answered on 25 May 2011, 12:15 PM
Hi Dave,

Excuse us for the misunderstanding. Will it be possible to send us the actual exception that your are getting (stacktrace would also help). Ideally a sample application or at least some more code would be really appreciated. 


All the best,
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
Dave
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Dave
Top achievements
Rank 1
Milan
Telerik team
Share this question
or