or

@{ Html.Kendo() .Grid<Teamnet.eViza.Model.Entities.App.DocumentData>() .Name("gridDocumentData") .Columns(columns => { columns.Bound(c => c.Id); columns.Bound(c => c.IssuedByAuthority); columns.Bound(c => c.IssuedCountry) .ClientTemplate("#=(IssuedCountry == null) ? '' : IssuedCountry.roDescription #") .EditorTemplateName("NomLookup"); columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200); }) .DataSource(dataSource => { dataSource.Ajax() .CrudWithQueryAndDefaultCommands( new Teamnet.eViza.Business.Queries.AllEntitiesOfTypeName(typeof(Teamnet.eViza.Model.Entities.App.DocumentData)), "DocumentData") .AutomaticRefreshed(); dataSource.Ajax() .Model(model => model.Id(a => a.Id)); dataSource.Ajax().PageSize(10); }) .ToolBar(toolbar => toolbar.Create()) .Editable(editable => editable.Mode(GridEditMode.InLine)) .AutoBind(true) .Pageable() .Filterable() .Sortable() .Render();}@model Teamnet.eViza.Model.Entities.BaseNom@(Html.Kendo().ComboBoxFor(a => a) .DataTextField("roDescription") .DataValueField("Id") .Filter(FilterType.StartsWith) .HighlightFirst(true) .MinLength(1) .DataSource(dataSource => dataSource.Read(read => read.Action("Read", "NomComboBox", new { nomType = Teamnet.eViza.WebCommon.Utils.TypeUtils.FullNameWithAssembly(ViewData.ModelMetadata.ModelType) }) ).ServerFiltering(true)) .SelectedIndex(0))