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

[Solved] dynamic type with grid

3 Answers 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
daniel
Top achievements
Rank 1
daniel asked on 20 Sep 2010, 05:40 PM
It's posible to use dynamic types with MVC grid?
my controller class generates anonymous type collections. I would like to use anonymous types instead of ViewModel pattern.

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

    <% Html.Telerik().Grid<dynamic>()
              .Name("Ambientes")
              .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Ambientes"))
              .Columns(column => 
              {
                  column.Bound("COD_AMB").Title("Código");
                  column.Bound("NOM_AMB").Title("Ambiente");
              })


Thanks.
Daniel

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 21 Sep 2010, 07:37 AM
Hi daniel,

 Currently this is not supported. We will try to provide support for binding to dynamic in the next major release.

All the best,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Poubelle
Top achievements
Rank 1
answered on 16 Mar 2011, 05:13 PM
Hello,

I would like to know if we can do dynamic type with the current version: 2011.1 315 (Mar 16, 2011)
Best regards
Joao Fernandes
0
Atanas Korchev
Telerik team
answered on 17 Mar 2011, 08:02 AM
Hi Poubelle,

 You can check this code library project.

All the best,
Atanas Korchev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
daniel
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Poubelle
Top achievements
Rank 1
Share this question
or