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

GroupBy Collumns in diferent levels

3 Answers 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Regula
Top achievements
Rank 1
Regula asked on 16 Jul 2010, 06:25 PM
Hello!
I'm trying to use a RadGrid with two of the columns grouped.

If I try to group the two collums day are displayed at the same level like this:

Group A  Group 1
Data
Group A Group 2
Data
Group B Group 1

I would like to display the data this hierarchical way:

Group A
   Group 1
           Data
   Group 2
           Data
Group B
   Group 1
            Data

In this demo http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx if I drag From column I get the appearance I wish to have on my form.

My pseudo-code of what I have in the GroupBy zone:


<telerik:RadGrid.....

<
GroupByExpressions>
                     <telerik:GridGroupByExpression>
                         <SelectFields>
                             <telerik:GridGroupByField FieldAlias="Field1" FieldName="Field1" HeaderValueSeparator=" : " SortOrder="Ascending" >
                             </telerik:GridGroupByField>
                             <telerik:GridGroupByField FieldAlias="Field2" FieldName="Field2" SortOrder="Ascending" FormatString="{0:D}"
                                 HeaderValueSeparator=" : "></telerik:GridGroupByField>
                         </SelectFields>
                         <GroupByFields>
                             <telerik:GridGroupByField FieldName="Field1" SortOrder="Ascending"> </telerik:GridGroupByField >
                             <telerik:GridGroupByField FieldName="Field2" SortOrder="Ascending"></telerik:GridGroupByField>
                         </GroupByFields>
                     </telerik:GridGroupByExpression>
                 </GroupByExpressions>
...</telerik:RadGrid>

3 Answers, 1 is accepted

Sort by
0
Regula
Top achievements
Rank 1
answered on 19 Jul 2010, 11:20 AM
Hi there!

Any clues how I can display the RadGrid in this way?

Best regards
0
Regula
Top achievements
Rank 1
answered on 21 Jul 2010, 05:38 PM
Please! Can anybody help me?
I'm sure that this isn't difficult but I'm a newbie in the Telerik controls.

Any help is welcome!
0
Daniel
Telerik team
answered on 22 Jul 2010, 02:20 PM
Hello Regula,

Please download the attached demo and let me know if you need further assistance.

Regards,
Daniel
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
Grid
Asked by
Regula
Top achievements
Rank 1
Answers by
Regula
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or