AJAX binding for LINQ join result

2 posts, 1 answers
  1. Pauline
    Pauline avatar
    7 posts
    Member since:
    Sep 2013

    Posted 20 Nov 2013 Link to this post

    If I used a LINQ join that returns anonymous objects, in the manner found in

    http://stackoverflow.com/questions/5808116/linq-how-to-do-join-using-the-linq-extension-method-style-on-multiple-fields

    How could I set that as my grid's model?
    @(Html.Kendo().Grid<*what do I put here?*>()
          .Name("grid")
          .DataSource(dataSource => dataSource // Configure the grid data source
              .Ajax() // Specify that ajax binding is used
              .Read(read => read.Action(...)
           )
        ...more configs...
    )
  2. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 22 Nov 2013 Link to this post

    Hello Pauline,

    Did you try to set it to dynamic? Here is similar scenario in a code library:

    http://www.kendoui.com/code-library/mvc/grid/binding-to-a-collection-of-dynamic-objects.aspx

    Let me know your findings.

    Kind Regards,
    Petur Subev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top