MVC Grid and Many-To-Many Relationship

6 posts, 0 answers
  1. Silviya
    Silviya avatar
    5 posts
    Member since:
    Mar 2015

    Posted 21 Apr 2015 Link to this post

    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

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1444 posts

    Posted 23 Apr 2015 Link to this post

    Hello Silviya,

    I would suggest checking the following threads:

    Regards,
    Alexander Popov
    Telerik
     

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

     
  3. Matteo
    Matteo avatar
    2 posts
    Member since:
    Mar 2016

    Posted 25 Mar 2016 in reply to Silviya Link to this post

    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.

  4. Antonio
    Antonio avatar
    6 posts
    Member since:
    Jan 2014

    Posted 04 Apr 2016 Link to this post

    Hi,

    can you publish a small sample project.

  5. Matt
    Matt avatar
    4 posts
    Member since:
    Oct 2016

    Posted 12 Feb 2018 in reply to Alexander Popov Link to this post

    Is there an actual example done by Telerik? This is frustrating. All examples are partly there. 
  6. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 14 Feb 2018 Link to this post

    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.
Back to Top