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

Default sort with groupped rows

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ITRaona
Top achievements
Rank 2
ITRaona asked on 10 Jul 2013, 09:20 AM
Hi,

I'm having issues sorting a Grid groupped by default.

The thing is that I have a Grid groupped by Department (The grid displays all users within the company). Inside that grouping I want to apply a custom sort order (I have a numeric Order field) but it does not happen.

If I'm not groupping by default the users appear correctly, but when I apply a groupby expression

<GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <SelectFields>
                        <telerik:GridGroupByField FieldAlias="Departamento" FieldName="Departamento" FormatString="{0}"> </telerik:GridGroupByField>
                    </SelectFields>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="Departamento" SortOrder="Ascending"></telerik:GridGroupByField>
                    </GroupByFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>

it applies an unkown order, my datasource is an SQL and i've tried to apply my custom sort using the "Order By" clause in the "Select".

What I'm doing wrong?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 15 Jul 2013, 11:15 AM
Hi,

I would suggest you to review the online demo below which presents the required functionality:
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/expressions/defaultcs.aspx

Test it on your side and verify if it helps.

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
ITRaona
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Share this question
or