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

Binding Directly to SortDescriptors

2 Answers 130 Views
GridView
This is a migrated thread and some comments may be shown as answers.
DeveloperDame
Top achievements
Rank 1
DeveloperDame asked on 01 Dec 2010, 03:36 PM
Hi,

Is it possible to bind a SortDescriptiorCollection directly to the xaml?

i.e
<telerikGrid:RadGridView.SortDescriptors ItemSource="{Binding SortDescriptors}" />
 
NOTE: Sorry I meant his to be in the Silverlight section for GridVIew
Sara :)
<telerikGrid:RadGridView.SortDescriptors ItemSource="{Binding SortDescriptors}">
<telerikGrid:RadGridView.SortDescriptors ItemSource="{Binding SortDescriptors}">

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 01 Dec 2010, 04:11 PM
Hello Sara,

 Generally in this case the approach is the same in both WPF and Silverlight. You can use our QueryableCollectionView and the grid automatically will synchronize SortDescriptors. 

I've attached small example for WPF however the approach is exactly the same in Silverlight. 

Don't hesitate to contact us if you have other questions.

Sincerely yours,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
DeveloperDame
Top achievements
Rank 1
answered on 01 Dec 2010, 06:46 PM
That's great, worked a charm. Thanks very much.
Tags
GridView
Asked by
DeveloperDame
Top achievements
Rank 1
Answers by
Vlad
Telerik team
DeveloperDame
Top achievements
Rank 1
Share this question
or