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

[Solved] about InvertGroupSortDirectionRequested

3 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Guillermo Aquino
Top achievements
Rank 1
Guillermo Aquino asked on 17 Aug 2010, 10:31 AM

Hello,

I'm using the RadGridView telerik for silverlight (version Q2 2010 sp1)

InvertGroupSortDirectionRequested has a comportement like "Invert Group Sorting Direction"

I would to know if is there a event like "Invert Group Sorted Direction".

Thanks

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 20 Aug 2010, 10:14 AM
Hi Guillermo Aquino,

Please share more details about your requirements and the reason you are in need of such event so that we could provide you with an appropriate solution for your scenario.

Regards,
Maya
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
0
Guillermo Aquino
Top achievements
Rank 1
answered on 23 Aug 2010, 01:39 PM
Hello,

i have a component that contains a Telerik Grid and a Planning component,  if i grouped the rows of telerik grid, then the rows of the planning are grouped.

for grouping the rows of the planning, i use the grouped event of the Telerik Grid for begin the grouping in the planning  and, i use Property Groups(CollectionViewGroup) to get the sort of the rows, this is ok!!

Now, i want do the same thing, but using the option sort by group, but i'm using InvertGroupSortDirectionRequested,  the property Groups is not yet sorted.

Can you help me.

Thanks
0
Yavor Georgiev
Telerik team
answered on 24 Aug 2010, 11:36 AM
Hello Guillermo Aquino,

 InvertGroupSortDirectionRequested fires just before the sorting state of a GroupDescriptor changes. You can access the GroupDescriptor that fired the event like so:

GroupDescriptor groupDescriptor = (GroupDescriptor) e.GroupCell.DataContext;

You can get the current sort direction from the SortDirection property. If the current SortDirection is Ascending, after the event fires it will be Descending. If it is Descending, it will be null. If it's currently null, it will be Ascending and so on.

This way you will know that the new sort direction will be so that you can sort the groups in your Planning control.

Sincerely yours,
Yavor Georgiev
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
GridView
Asked by
Guillermo Aquino
Top achievements
Rank 1
Answers by
Maya
Telerik team
Guillermo Aquino
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Share this question
or