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

Column ShowColumnWhenGrouped attribute ignored when set in XAML

7 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 17 May 2014, 04:55 PM
I am a long time Telerik user, and I love the ShowColumnWhenGrouped attribute, I've wanted this functionality for a long time.  It works great when the user drags a column to the group bar, but when set in XAML with a column grouping defined in XAML, it is ignored.  Is this a bug, and is there a workaround?  Thanks.

7 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 19 May 2014, 12:10 PM
Hi,

May I ask you to share how do you define the column grouping in XAML? Do you define a GroupDescriptor or a ColumnGroupDescriptor?

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Chuck
Top achievements
Rank 1
answered on 19 May 2014, 12:15 PM
I use a group descriptor.  Is that wrong?  Can you give me an example of how to do it with a ColumnGroupDescriptor?
0
Chuck
Top achievements
Rank 1
answered on 19 May 2014, 12:27 PM
My XAML looks like:

<telerik:GroupDescriptor Member="Type" SortDirection="Ascending" DisplayContent="Type">
     <telerik:GroupDescriptor.AggregateFunctions>
         <telerik:CountFunction />
     </telerik:GroupDescriptor.AggregateFunctions>
</telerik:GroupDescriptor>
0
Dimitrina
Telerik team
answered on 19 May 2014, 12:32 PM
Hi,

The GroupDescriptor is not associated with any column, it has a Member to group by instead. That is why the ShowColumnWhenGrouped attribute of a column does not react.
You could check the Programmatic Grouping section in our online documentation for more details and an example.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Chuck
Top achievements
Rank 1
answered on 19 May 2014, 12:35 PM
Is there a way to add an aggregate function to a ColumnGroupDescriptor?
0
Dimitrina
Telerik team
answered on 20 May 2014, 11:03 AM
Hi,

You should directly define the AggregateFunctions for the respective column. Please note the ColumnGroupDescriptor is associated with a specific column and that is why there is not a need for it to also expose the option do define AggregateFunctions. 

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Chuck
Top achievements
Rank 1
answered on 20 May 2014, 01:56 PM
Ok, I finally got it.  It is working properly now, thanks.
Tags
GridView
Asked by
Chuck
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Chuck
Top achievements
Rank 1
Share this question
or