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

Grouping is working fine but not displaying the content

1 Answer 77 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Subhendu
Top achievements
Rank 1
Subhendu asked on 17 May 2013, 04:20 PM
I have the following XAML :
<telerik:RadGridView.GroupDescriptors>
<telerik:GroupDescriptor Member="{Binding DataContext.VMData.GroupingData,RelativeSource={RelativeSource  AncestorType={x:Type UserControl}}}"    SortDirection="Ascending" />
</telerik:RadGridView.GroupDescriptors>

As far as grouping is concerned this is working fine but the problem is the group descriptor isn't showing any text. Image attached.

Update:
VMData is composite type  as below:
 
[DataContract]
    public class CompositeType
    {
    string groupingData;
        [DataMember]
        public string GroupingData
        {
            get { return groupingData}
            set { groupingData= value; }
        }
}

In View model :

         private CompositeType _vMData= new CompositeType ();
       public CompositeType VMData
       {
           get
           {
               return _vMData;
           }
           set
           {
               _vMData= = value;
             }
       }

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 23 May 2013, 07:53 AM
Hello,

Have you tried using the DisplayContent property of the GroupDescriptor ?

Regards,
Pavel Pavlov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Subhendu
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or