This question is locked. New answers and comments are not allowed.
Hello telerik-community:)
i just started to develop with the telerik controls.
i've got a question:
how can i set a column with a default value of my ViewModel but another property than the binded to the Grid.
i'd like to insert a column with a value of "Model.OtherPropertyThanGridViewModelList".
e.g.:
best regards
i just started to develop with the telerik controls.
i've got a question:
how can i set a column with a default value of my ViewModel but another property than the binded to the Grid.
i'd like to insert a column with a value of "Model.OtherPropertyThanGridViewModelList".
e.g.:
@(Html.Telerik().Grid(Model.GridViewModelList)
.Name("Grid")
.ToolBar(cmd => cmd.Insert())
.DataKeys(keys => keys.Add(c => c.ID))
.DataBinding(dataBinding => dataBinding
.Ajax()
.Select("Selecting", "Kurs", new {KursId = Model.Kurs.ID })
.Insert("Inserting", "Kurs")
.Update("Updating", "Kurs")
.Delete("Deleting", "Kurs"))
.Columns(c =>
{
c.ForeignKey(o => o.KursId, (IEnumerable)Model.Kurs.ID);
c.Bound(o => o.Datum);
c.Bound(o => o.StartZeit);
c.Bound(o => o.EndZeit);
c.Bound(Model.Kurs.ID);
c.Command(cmd =>
{
cmd.Edit();
cmd.Delete();
});
})
)