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

GroupDescriptions on RadGridView

3 Answers 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
NS
Top achievements
Rank 1
NS asked on 13 Jul 2009, 01:50 PM
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

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 Jul 2009, 02:28 PM
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.
0
NS
Top achievements
Rank 1
answered on 13 Jul 2009, 02:42 PM
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.

0
NS
Top achievements
Rank 1
answered on 13 Jul 2009, 02:58 PM
Found the problem:
I had to change the line

 

 

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

 

Tags
General Discussions
Asked by
NS
Top achievements
Rank 1
Answers by
Vlad
Telerik team
NS
Top achievements
Rank 1
Share this question
or