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

Multiple Group Descriptor Problem

1 Answer 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anish
Top achievements
Rank 1
Anish asked on 30 Aug 2011, 02:36 PM
Hi,

I am applying two group filters in code-behind to a RadGridView. Code : -


Dim trackGroupDescriptor As New Telerik.Windows.Data.GroupDescriptor  
  
trackGroupDescriptor.Member = "TrackName"  
  
trackGroupDescriptor.DisplayContent = "Track"  
  
trackGroupDescriptor.SortDirection = ComponentModel.ListSortDirection.Ascending  
  
AllTrackGrid.GroupDescriptors.Add(trackGroupDescriptor)
  
  
  
Dim FeatureGroupDescriptor As New Telerik.Windows.Data.GroupDescriptor  
  
FeatureGroupDescriptor.Member = "FeatureName"  
  
FeatureGroupDescriptor.DisplayContent = "Feature"  
  
FeatureGroupDescriptor.SortDirection = ComponentModel.ListSortDirection.Ascending 
   
AllTrackGrid.GroupDescriptors.Add(FeatureGroupDescriptor)


The problem I am having is that when the grid loads only one single data row appears inside each of the inner (second) group descriptor, while the actual number of rows which should be present is more. Hoever when I remove the column headers from the 'ShowGroupPanel' while application is running and add them once more, I am able to see all the entries properly. Is there something I am missing in the code?

BTW: Tried adding the descriptor from design-side as well, but having the same issue.  


Thanks
Anish George

1 Answer, 1 is accepted

Sort by
0
Anish
Top achievements
Rank 1
answered on 01 Sep 2011, 08:19 AM
I just tried it (adding multiple group descriptors to a grid) on a different form which already had a single group descriptor added to the grid; it is working fine there. The problem is reproducable on just one particular form, which is weird. 

Thanks
Anish George 
Tags
GridView
Asked by
Anish
Top achievements
Rank 1
Answers by
Anish
Top achievements
Rank 1
Share this question
or