Hi,
I have one table
Employee
..............
EId EName CompanyId's
1 a 1,2
2 b 2
@(Html.Kendo().Grid<Emplopyee>
()
.Name("grid")
.Columns(columns =>
{
columns.ForeignKey(f => f.CompanyId,
(System.Collections.IEnumerable)ViewData["CompaniesList"],
"CompanyId", "CompanyName")
.EditorTemplateName("CompaniesEditor").Title("Company Name").Width(200)
columns.Bound(p => p.EId).Filterable(false);
columns.Bound(p => p.EName);
})
.Pageable()
.Sortable()
.Filterable()
.HtmlAttributes(new { style = "height:550px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("GetDetails", "Home"))
.Model(model => model.Id(p => p.EId))
)
)
CompaniesEditor
.......................
(
Html.Kendo().MultiSelectFor(m => m)
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"]).Filter(FilterType.Contains).TagTemplateId("tagTemplate") // Reference to the template.
)
2
my requirement is that need to display comma separated values in grid
can any one help me