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

AJAX binding for LINQ join result

1 Answer 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pauline
Top achievements
Rank 1
Pauline asked on 20 Nov 2013, 02:59 PM
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...
)

1 Answer, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 22 Nov 2013, 09:42 AM
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!
Tags
Grid
Asked by
Pauline
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or