New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Using Nested Model Properties


Product ASP.NET MVC Grid
Operating System All
Browser All
Browser Version All


How can I use nested Model properties in the ASP.NET MVC's Grid?


To bind a column of the Grid to a Model with nested properties you need to use a Custom DataSource which allows you to configure the [From]( configuration property of the [schema.model.field](

In addition when you use From together with CRUD operations and add new rows, you also have to define in Schema.Model.Field the original field or the sequence of nested fields which are used inside From.

The reason is that during updates and creates, the Telerik UI DataSource tries to construct a data item object which matches the original (server-side) data-item structure. For new data items, such a structure does not exist and needs to be defined explicitly.

  .DataSource(ds => ds
              .Schema(schema =>
                  schema.Model(model =>
                    model.Id(id => id.Name);
                    model.Field(f => f.Name);
                    model.Field(f => f.Description).From("Description.Text");
            .Transport(transport =>
                transport.Read("Orders_Read", "Grid");
                transport.Update("Orders_Update", "Grid");
                transport.Create("Orders_Create", "Grid");
                transport.Destroy("Orders_Destroy", "Grid");

More ASP.NET MVC Grid Resources

See Also

In this article