bindig of list of objects into telerikGridView:GridViewDataColumn

2 posts, 0 answers
  1. lina fetisova
    lina fetisova avatar
    110 posts
    Member since:
    Apr 2010

    Posted 24 May 2010 Link to this post

    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)?

  2. Vlad
    Vlad avatar
    11100 posts

    Posted 25 May 2010 Link to this post


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

    All the best,
    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.
Back to Top