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

MVC Grid and Many-To-Many Relationship

5 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Silviya
Top achievements
Rank 1
Silviya asked on 21 Apr 2015, 01:48 PM

Hello,

 I have Many-To-Many Relationship problem in my Grid.Searched the examples but could not find a way to do the column binding (unless using separate ViewModel). What I tried to do is:

columns.Bound(o => o.PERSON.EDUCATIONs.Select(m => m.E_DEGREE)).Title("Degree").Width("12.5%");

 That, of course, gives the following error:

Bound columns require a field or property access expression.

 

Is it possible to achieve the above?

 

Thanks

5 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 23 Apr 2015, 01:43 PM
Hello Silviya,

I would suggest checking the following threads:

Regards,
Alexander Popov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Matteo
Top achievements
Rank 1
answered on 25 Mar 2016, 03:44 PM

Hy Silviya,

I'm working with Kendo and I've got the same problem with the Relationship in Grid.

I'd like to know if you have solved the problem and how.

Pleas ask me.

0
Antonio
Top achievements
Rank 1
answered on 04 Apr 2016, 07:08 PM

Hi,

can you publish a small sample project.

0
Matt
Top achievements
Rank 1
answered on 12 Feb 2018, 07:44 AM
Is there an actual example done by Telerik? This is frustrating. All examples are partly there. 
0
Konstantin Dikov
Telerik team
answered on 14 Feb 2018, 08:41 AM
Hi Matt,

The Grid is designed to be used with flat data and we only provide a built-in functionality for ForeignKey column with one-to-many relationship. As suggested in the linked forum threads in the previous posts, for many-to-many relationship, Hierarchical Grid or custom editor could be used:


Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Silviya
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Matteo
Top achievements
Rank 1
Antonio
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or