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

bindig of list of objects into telerikGridView:GridViewDataColumn

1 Answer 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
lina fetisova
Top achievements
Rank 1
lina fetisova asked on 24 May 2010, 08:32 AM
Good day!
I have a class names Sales:
public class Sales : BaseDomain
{
        public virtual string Name { get; set; }
        ICollection<ActivityCategory> categories = new List<ActivityCategory>();
}

I bind this a List of items of this class to a RadGridView:
grid.ItemSource = e.Result;
where e.Result is a List<Sales>.
For column "Name" I make it this way:
<telerikGridView:GridViewDataColumn UniqueName="Name"  Header="Name of Sale"  />.

How can I make it for ICollection<ActivityCategory> categories to show it in my RadGridView (maybe with a list of text  separated by commas or with an dynamic number of chek boxes with text)?



















1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 May 2010, 07:24 AM
Hello,

Indeed you can do this (display the list with commas) however you will need your own IValueConverter for this column DataMemberBinding.

All the best,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
lina fetisova
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or