Grouping is working fine but not displaying the content

2 posts, 0 answers
  1. Subhendu
    Subhendu avatar
    10 posts
    Member since:
    Mar 2013

    Posted 17 May 2013 Link to this post

    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;
                 }
           }
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 23 May 2013 Link to this post

    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.

  3. DevCraft banner
Back to Top