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

[Solved] GridView - Programmatic Grouping :

3 Answers 140 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.
Rakesh
Top achievements
Rank 1
Rakesh asked on 04 Oct 2010, 03:25 PM
Hello Telerik Team,
      I am doing the grouping of my grid view as explained in your tutorials.

1. In Programatic grouping it says: Use DataItem Collection. But there is no sample of how to use to bind items collection to the grid. I tried to use it like a list and add items into it, but of no use,

2. I want to control the speed of the opening the groups detail rows. I know I can control in radtreeview I am wondering will I hav the privilege to do the same here??

 

 

AnimationSelector animationSelector = AnimationManager.GetAnimationSelector(dgActivity) as AnimationSelector;

 

 

 

foreach (Telerik.Windows.Controls.Animation.RadAnimation animation in animationSelector.Animations)

 

{

animation.SpeedRatio = 0.2;

}



Programmatic Grouping
See Also
Controls > RadGridView > Grouping > Programmatic Grouping

Glossary Item Box

Besides the built-in grouping functionality you are able to use a programmatic approach to group the data in the RadGridView. This is achieved via the GroupDescriptors property of the RadGridView. This collection allows you to use descriptors which define the grouping criteria and the group's sorting direction for the data that is bound to the RadGridView. As this is a collection you are able not only to add, but to remove or clear the entries in it too.

If you use DataItemCollection as data source, the RadGridView will automatically synchronize the GroupDescriptors of the source with its own ones.
Thanks

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 07 Oct 2010, 03:41 PM
Hi Rakesh,

Unfortunately, the line you stated form our online documentation (for the usage of DataItemCollection) is not completely accurate and we immediately updated the article. You actually cannot apply this approach.
Considering your second requirement for controlling the speed of the opening of groups, you are not capable of achieving it. However, if you share more details about the purpose of this and your exact scenario, I may be able to provide you with a far more appropriate solution.
 

Sincerely yours,
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
Rakesh
Top achievements
Rank 1
answered on 07 Oct 2010, 04:14 PM
Maya,

Thanks for your reply.
1.
Well If I am binding items to the grid,
Instead of binding at a flick - I want to add the items like a gradual effect instead of sudden transition
2.
Also In my grouping, if I do a grouping, I want the items to re-organize like a gradual stream instead of sudden flickering action.

3, When I expand my grouping, i can seee a small (Busy loading kind of arrow) _ Even it rotates very quickly.

I just want to control the speed of everything, I know I have used the sample code I prrovided to you in radtreeview and it was fantastic.

Hope animal selector/control for controlling is available(In other speed ratio). Where do I control all these?

Thanks
0
Maya
Telerik team
answered on 11 Oct 2010, 08:41 AM
Hello Rakesh,

For the time being RadGridView does not provide animation-management functionality, but we will definitely consider its implementation. However, as it is not a trivial task to do, we will need some time for investigating the best possible approach for achieving this. Thus no time frame for its implementation can be defined.
I reward you with Telerik points for your feedback.
As for your last requirement for busy-loading state, you may put into usage our RadBusyIndicator control.        

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