Column ShowColumnWhenGrouped attribute ignored when set in XAML

8 posts, 0 answers
  1. Chuck
    Chuck avatar
    9 posts
    Member since:
    Jan 2013

    Posted 17 May 2014 Link to this post

    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.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 19 May 2014 Link to this post

    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.
     
  3. Chuck
    Chuck avatar
    9 posts
    Member since:
    Jan 2013

    Posted 19 May 2014 in reply to Dimitrina Link to this post

    I use a group descriptor.  Is that wrong?  Can you give me an example of how to do it with a ColumnGroupDescriptor?
  4. Chuck
    Chuck avatar
    9 posts
    Member since:
    Jan 2013

    Posted 19 May 2014 in reply to Chuck Link to this post

    My XAML looks like:

    <telerik:GroupDescriptor Member="Type" SortDirection="Ascending" DisplayContent="Type">
         <telerik:GroupDescriptor.AggregateFunctions>
             <telerik:CountFunction />
         </telerik:GroupDescriptor.AggregateFunctions>
    </telerik:GroupDescriptor>
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 19 May 2014 Link to this post

    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.
     
  6. Chuck
    Chuck avatar
    9 posts
    Member since:
    Jan 2013

    Posted 19 May 2014 in reply to Dimitrina Link to this post

    Is there a way to add an aggregate function to a ColumnGroupDescriptor?
  7. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 20 May 2014 Link to this post

    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.
     
  8. Chuck
    Chuck avatar
    9 posts
    Member since:
    Jan 2013

    Posted 20 May 2014 in reply to Dimitrina Link to this post

    Ok, I finally got it.  It is working properly now, thanks.
Back to Top