Skip navigation
Currently Being Moderated

Access GroupingCollection2 's variable newCollection

Apr 10, 2013 2:34 AM



I need to group data based on date. The groups will be Today, Yesterday, Tomorrow, Next Week, Last Week etc instead of actual date values.


To do this I have added logic in groupingFunction of GroupingField.


But the problem is same group is added more than once with different data. E.g Group "Last Week" appears twice in my Advanced Datagrid and each of these groups is having different data.


So I thought that once the groups are formed I will take loop on newCollection variable of GroupingCollection2 which gives me all the created groups. and then check if all same group already exists then combine the children of the same groups.

But I feel this is a sort of workaround. Moreover newCollection variable is a private variable so i cant access it.


Can anyone please guide me how I can do this in proper and efficient way?


Thanks in advance.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points