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

[Solved] How to do aggregation in treelistview

3 Answers 145 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kumar
Top achievements
Rank 1
Kumar asked on 02 Sep 2010, 03:52 PM

When I use the following code in my treelist view to generate group summay

<telerik:RadTreeListView.GroupDescriptors>
   <telerik:GroupDescriptor Member="Country">
       <telerik:GroupDescriptor.AggregateFunctions>
           <telerik:CountFunction Caption="Total Country:" />
       </telerik:GroupDescriptor.AggregateFunctions>
   </telerik:GroupDescriptor>
</telerik:RadTreeListView.GroupDescriptors>

I get the following error

Line: 56
Error: Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)    

If I remove the group descriptor there is not error and the data bound properly.

3 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 03 Sep 2010, 10:07 AM
Hello Kumar,

Currently grouping is not supported in RadTreeListView. There are a number of ways people want to group their hierarchical data and this is the reason we have decided not implemented in this first version.

Can you share more details about your particular scenario? How do you envision the grouping in RadTreeListView? Do you expect only the root items to be grouped? Or only the leaves? Please share your opinion, because your feedback will help us implement this feature the way customers expect it.

Regards,
Stefan Dobrev
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
Anton
Top achievements
Rank 1
answered on 17 Sep 2010, 05:18 PM
I also need grouping for RadTreeListView. I need grouping for root elements only. Could you provide any estimations when it will be implemented.

Thannk you, Anton.
0
Stefan Dobrev
Telerik team
answered on 20 Sep 2010, 12:09 PM
Hi Anton,

This feature will not make it to our next official release. We have not discussed internally our future plans after our next official release, but if this is what you/community wants we will implement it. Actually I have created a PITS item (#3485), which you can track and vote for.

Kind regards,
Stefan Dobrev
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
Kumar
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Anton
Top achievements
Rank 1
Share this question
or