Indexer Binding + Sorting

3 posts, 1 answers
  1. Chris Moore
    Chris Moore avatar
    14 posts
    Member since:
    Jul 2009

    Posted 11 Dec 2010 Link to this post

    I have a hierarchical data structure that I have bound to the TreeListView via indexer binding. That is, the nodes in my data structure implement an indexer and each column has a binding such as Binding b = new Binding("[" + IndexName + "]". The data is displayed correctly, numbers are formatted properly, etc. Unfortunately, however, I have lost the ability to sort (and group). I suspect that since there's no hard-coded property to reflect on the TLV doesn't know how to handle it. I've looked into implementing custom sorting but the sort event is never raised because no sort gyph is ever available in the header despite the fact that allow sorting is set to true. I'm hoping there's some way to work around this problem; any ideas?

    Thanks.
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 11 Dec 2010 Link to this post

    Hi,

    Can you verify if the treelist columns DataType is set?

    All the best,
    Vlad
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Chris Moore
    Chris Moore avatar
    14 posts
    Member since:
    Jul 2009

    Posted 11 Dec 2010 Link to this post

    Worked like a charm

    Thanks!
Back to Top