title: An expression tree may not contain a dynamic operation - mvc
body: <p>I have this in my code:</p>
  
  <pre><code>@model Tuple&lt;IEnumerable&lt;dynamic&gt;, IEnumerable&lt;dynamic&gt;, IEnumerable&lt;dynamic&gt;&gt;
  
  @(Html.Telerik().Grid(Model.Item3)
      .Name("Grid")
      .DataKeys(keys =&gt; keys.Add(c =&gt; c.Id))
  )
  </code></pre>
  
  <p>And I get the error: An expression tree may not contain a dynamic operation.</p>
  
  <p>Here is the controller code:</p>
  
  <pre><code>FirstClass firstC= new FirstClass ();
  IEnumerable&lt;dynamic&gt; first= firstC.All();
  
  SecondClass secondC= new SecondClass ();
  IEnumerable&lt;dynamic&gt; second= secondC.All();
  
  ThirdClass thirdc = new ThirdClass ();
  IEnumerable&lt;dynamic&gt; third= thirdc .All();
  
  Tuple&lt;IEnumerable&lt;dynamic&gt;, IEnumerable&lt;dynamic&gt;, IEnumerable&lt;dynamic&gt;&gt; result =
              new Tuple&lt;IEnumerable&lt;dynamic&gt;, IEnumerable&lt;dynamic&gt;, IEnumerable&lt;dynamic&gt;&gt;(firstC, secondC, thirdc );
  return View(result);
  </code></pre>
  
  <p>How to resolve this?</p>