Binding Directly to SortDescriptors

3 posts, 1 answers
  1. DeveloperDame
    DeveloperDame avatar
    7 posts
    Member since:
    Mar 2010

    Posted 01 Dec 2010 Link to this post

    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. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 01 Dec 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. DeveloperDame
    DeveloperDame avatar
    7 posts
    Member since:
    Mar 2010

    Posted 01 Dec 2010 Link to this post

    That's great, worked a charm. Thanks very much.
Back to Top