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

Indexer Binding + Sorting

2 Answers 48 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Chris Moore
Top achievements
Rank 1
Chris Moore asked on 11 Dec 2010, 06:28 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 11 Dec 2010, 08:01 AM
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
0
Chris Moore
Top achievements
Rank 1
answered on 11 Dec 2010, 04:27 PM
Worked like a charm

Thanks!
Tags
TreeListView
Asked by
Chris Moore
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Chris Moore
Top achievements
Rank 1
Share this question
or