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

Object Databind with Sub Enumeration

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nate
Top achievements
Rank 1
Nate asked on 27 Sep 2008, 05:02 PM
I'm trying to figure out how to dynamically add columns based on an enumeration property in my object. 

Parent Object:
public class GridDisplayItem  
    { 
        public string companyName { get; set; } 
        public string duns { get; set; } 
        public bool? SmallBusiness { get; set; } 
        public bool? SmallBusinessCertified { get; set; } 
        public double SearchScoreOverall { get; set; } 
        public double SurveyScoreOverall { get; set; } 
 
        public IEnumerable<Model.GroupResult> SearchScores { get; set; } 
        public IEnumerable<Model.GroupResult> SurveyScores { get; set; } 
    } 

GroupResult Object:
public class GroupResult 
    { 
        public string Name { get; set; } 
        public string Category { get; set; } 
        public double Score { get; set; } 
    } 

I want the scores to show up on the same table rows as the rest of the data, but I can't seem to get it to work.  When I try to use the dot notation like the docs say, I get blank cells.  Any help would be great.


1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 30 Sep 2008, 07:22 AM
Hello Nate,

To see more information along the lines of the requested functionality, please refer to the following article. I hope this information helps.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Nate
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or