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

Display property data list in complex object grouped by one of its fields

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raul
Top achievements
Rank 1
Raul asked on 02 Nov 2017, 05:33 PM

Hi,
I can`t achieve display the data from an Complex Object with a property List of subObjects, in the way I would like to Display. This Way is Grouping  the Field ‘Question’ by  ‘QuestionGroup’

Complex Object:
    public class QuestionnaireReportData
    {
        public string Name { get; set; }
        public string Description { get; set; }
        public string DeviceID { get; set; }
        public string SerialNumber { get; set; }
        public string Location { get; set; }
        public string City { get; set; }
        public DateTime Date { get; set; }
        public string Client { get; set; }
        public string Modelo { get; set; }
        public string Manufacturer { get; set; }
        public IEnumerable<QuestionResponseReportData> QuestionResponses { get; set;      }
    }

    public class QuestionResponseReportData
    {
        public string Question { get; set; }
        public string Answer { get; set; }
        public AnswerDataType AnswerDataType { get; set; }
        public string QuestionGroup { get; set; }
    }
I achieve to binding the sourceData of Table, List,etc to the List Property IEnumerable<QuestionResponseReportData>) and show Correct Data, But I don’t achieve to Grouping correctly by the Field QuestionGroup as I want.

This is what I would like to display (Good display attached image)

This is what I display actually (bad display attached image)

What I’m doing wrong? Thanks in advance!
Best Regards,

1 Answer, 1 is accepted

Sort by
0
Raul
Top achievements
Rank 1
answered on 03 Nov 2017, 08:58 AM

More info about the Issue and Working Environment.

Telerik Version: 11.2.17.913

Visual Studio: 2017 Community Version 15.4.1

Proyect Framework 4.6.1 / output Class Library

 

Tags
General Discussions
Asked by
Raul
Top achievements
Rank 1
Answers by
Raul
Top achievements
Rank 1
Share this question
or