GroupDescriptions on RadGridView

4 posts, 0 answers
  1. NS
    NS avatar
    189 posts
    Member since:
    Jan 2007

    Posted 13 Jul 2009 Link to this post

    Hi,
    I upgraded to Silverlight 3.0 with the latest internal build of the Telerik Silverlight 3.0 controls.
    At one point in my application, I databind a RadGridView. I have the following properties in place to make a default grouping available on the grid:

    <telerik2:RadGridView AutoExpandGroups="True" Grid.Column="1" x:Name="grdResults2" ColumnsWidthMode="Auto" AutoGenerateColumns="False" Width="Auto" Height="Auto" Grid.Row="1" Opacity="0" HorizontalAlignment="Stretch">  
                <telerik2:RadGridView.GroupDescriptions> 
                    <data:RadGroupDescription PropertyName="OUInformation"  /> 
                </telerik2:RadGridView.GroupDescriptions> 
                <telerik2:RadGridView.Columns> 
    ... 
    When I run the application, I see a nested grouping in the header. OUINformation is linked to OUInformation. In 2.0 there was only one level of grouping available (as it should be)

    If I debug the application I get the following information:
    ?grdResults2.GroupCount  
    2  
    ?grdResults2.GroupDescriptions  
    Count = 1 
        [0]: {Telerik.Windows.Data.RadGroupDescription}  
    ?grdResults2.GroupDescriptions[0]  
    {Telerik.Windows.Data.RadGroupDescription}  
        base {Telerik.SilverlightExtensions.PropertyGroupDescription}: {Telerik.Windows.Data.RadGroupDescription}  
        AggregateFunctions: Count = 0 
        DisplayContent: "OUInformation"  
        InheritedAggregateFunctions: Count = 0 
        SortDirection: Ascending  
    ?grdResults2.GroupDescriptions[1]  
    ?grdResults2.GroupDescriptors  
    Count = 2 
        [0]: {Telerik.Windows.Data.GroupDescriptor}  
        [1]: {Telerik.Windows.Data.GroupDescriptor}  
    ?grdResults2.GroupDescriptors[0]  
    {Telerik.Windows.Data.GroupDescriptor}  
        AggregateFunctions: Count = 0 
        DisplayContent: "OUInformation"  
        Member: "OUInformation"  
        SortDirection: Ascending  
    ?grdResults2.GroupDescriptors[1]  
    {Telerik.Windows.Data.GroupDescriptor}  
        AggregateFunctions: Count = 0 
        DisplayContent: "OUInformation"  
        Member: "OUInformation"  
        SortDirection: Ascending  
     

    Any help on this ?
    Thanks,
    Nicolas

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 13 Jul 2009 Link to this post

    Hi Nicolas,

    I've just tried this however everything worked fine on my end - you can find small application attached.

    Regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. NS
    NS avatar
    189 posts
    Member since:
    Jan 2007

    Posted 13 Jul 2009 Link to this post

    It must be something freaky on my side.
    If I place the following code after setting the datacontext:

    grdResults2.GroupDescriptors.RemoveAt(1); then I get the expected result.

    I will try to prepare a demo project.

  4. NS
    NS avatar
    189 posts
    Member since:
    Jan 2007

    Posted 13 Jul 2009 Link to this post

    Found the problem:
    I had to change the line

     

     

    <telerik2:RadGridView.GroupDescriptions>  to <telerik2:RadGridView.GroupDescriptors>

     

Back to Top