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

[Solved] RadGrid with Column bound to Collection

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Johnnie Walker
Top achievements
Rank 1
Johnnie Walker asked on 28 Jul 2009, 07:07 AM
I need to bind a RadGrid to an object (called "Article").  

Most of the fields of this object are strings or ints and so are straightforward to display/sort/filter, but one of the fields is a collection of other objects (simple objects that just contain a name and a couple of other strings and ints).

What I need to do is:

a) Display the contents of the collection one of the columns of the grid.  If there is only one object in the collection I need to display it's name.  If there are multiple objects then I need to display the name of the first object and just append it with "(and n more)"

b) I need to be able to Filter on that column based on the names of the objects in the collection.  Ideally I would like a RadComboBox in the header that contains all of the names that exist in any of the collections.  When one is selected, only those rows who have that name in their collection should be displayed.

Have been trying to get this working for hours now.  Any help would be much appreciated!!

Johnnie

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 30 Jul 2009, 12:52 PM
Hi Johnnie,

To see more information along the lines of the requested functionality, please refer to the following article:

http://www.telerik.com/help/aspnet-ajax/grdbindingtosubobjects.html

I hope it gets you started properly.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Johnnie Walker
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or