This question is locked. New answers and comments are not allowed.
Hello,
I am trying to create a reusable web control by encapsulating your grid in my ViewUserControl. This would require being able to bind a collection to the grid without knowing the type at compile time. Is this possible?
Something like this:
Where Model.GridModel is an array of objects with unknown types and all columns are shown. Is this possible? I am willing to use Reflection if you could point me in the right direction.
Thanks!
I am trying to create a reusable web control by encapsulating your grid in my ViewUserControl. This would require being able to bind a collection to the grid without knowing the type at compile time. Is this possible?
Something like this:
Html.Telerik().Grid(Model.GridModel.AsEnumerable()) .Name(Model.Name) .Sortable() .Filterable() .Scrollable(s => s.Height(150))Where Model.GridModel is an array of objects with unknown types and all columns are shown. Is this possible? I am willing to use Reflection if you could point me in the right direction.
Thanks!